智慧保安后台管理-外网
Administrator
2022-03-29 a5b39478de866b68d0e19ac8aeebb4d0cccb18a2
Jenkinsfile
@@ -51,15 +51,15 @@
    }
    stage('deploy to dev') {
          agent none
          steps {
            container('maven') {
              withCredentials([kubeconfigContent(credentialsId : 'kube-zhba' ,variable : 'KUBE_VAR' ,)]) {
                sh 'kubectl apply -f deploy/deploy.yml'
              }
            }
      agent none
      steps {
        container('maven') {
          withCredentials([kubeconfigContent(credentialsId : 'kube-zhba' ,variable : 'KUBE_VAR' ,)]) {
            sh 'kubectl apply -f deploy/deploy.yml'
          }
        }
      }
    }
    //部署到 生成环境
    stage('deploy to production') {