Commit 4745d9cb by xujian

xx

parent 931e9c6c
...@@ -148,14 +148,21 @@ pipeline { ...@@ -148,14 +148,21 @@ pipeline {
} }
} }
stage('步骤五: 打包镜像'){ stage('步骤五: 服务部署'){
steps { steps {
script { withCredentials([file(credentialsId: '00789dc5-a86e-427d-9a57-f5d02a52cb6e', variable: 'KUBECONFIG_FILE')]) {
for( repo in repos){
if(repo.isUpdate && repo.name == "BASE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install base base-charts/"
sh "echo '加密并拷贝文件'" if(repo.isUpdate && repo.name == "CORE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install core core-charts/"
if(repo.isUpdate && repo.name == "HTJ") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install htj htj-charts/"
} }
} }
}
post {
success {
echo '部署实施'
}
}
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment