Commit ec14f48f authored by xujian's avatar xujian

xx

parent cf18aa32
...@@ -151,11 +151,13 @@ pipeline { ...@@ -151,11 +151,13 @@ pipeline {
stage('步骤五: 服务部署'){ stage('步骤五: 服务部署'){
steps { steps {
withCredentials([file(credentialsId: '00789dc5-a86e-427d-9a57-f5d02a52cb6e', variable: 'KUBECONFIG_FILE')]) { withCredentials([file(credentialsId: '00789dc5-a86e-427d-9a57-f5d02a52cb6e', variable: 'KUBECONFIG_FILE')]) {
for( repo in repos){ script {
if(repo.isUpdate && repo.name == "BASE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install base base-charts/ -n base" for( repo in repos){
if(repo.isUpdate && repo.name == "CORE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install core core-charts/ -n core" if(repo.isUpdate && repo.name == "BASE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install base base-charts/ -n base"
if(repo.isUpdate && repo.name == "HTJ") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install htj htj-charts/ -n htj" if(repo.isUpdate && repo.name == "CORE") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install core core-charts/ -n core"
} if(repo.isUpdate && repo.name == "HTJ") sh "KUBECONFIG=\$KUBECONFIG_FILE helm install htj htj-charts/ -n htj"
}
}
} }
} }
post { post {
......
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