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') {