Commit 28913fed authored by kalvin's avatar kalvin

litong

parent 6d866cd4
......@@ -24,6 +24,7 @@ def call(body) {
deleteDir()
}
if (dataCenter == "A" || dataCenter == "C") {
stage('Build') {
if (action == 'deploy') {
sh "ansible-playbook /etc/ansible/build.yml -e project_name=${projectName} -e data_center=${dataCenter} -e name_with_namespace=${nameWithNamespace} -e tag_name=${tagName} -e force=${force} -e env=${envType} -v"
......@@ -39,5 +40,8 @@ def call(body) {
sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${projectName} -e data_center=${dataCenter} -e machines=${machines} -e rollback_to_release=${tag_name} -e force=${force} -e env=${envType} -v"
}
}
}else{
sh "ansible-playbook k8s-deploy.yml -e project_name=${projectName} -e data_center=${dataCenter} -e env=${envType} -e image=${image} -v"
}
}
}
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