Commit 4f51a00c authored by daidekun's avatar daidekun

fix

parent 9a80f5ef
...@@ -37,11 +37,8 @@ def call(body) { ...@@ -37,11 +37,8 @@ def call(body) {
echo "Is deploy to :" + machine echo "Is deploy to :" + machine
sh "ansible-playbook /etc/ansible/service.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv" sh "ansible-playbook /etc/ansible/service.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv"
env.RELEASE_ACTION = input( env.RELEASE_ACTION = input '是否继续部署?'
id: 'action', message: '是否继续?', parameters: [
[$class: 'BooleanParameterDefinition', defaultValue: true, description: '', name: '请确认是否继续部署?']
])
if (env.RELEASE_ACTION == true) { if (env.RELEASE_ACTION == true) {
sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv" sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv"
}else{ }else{
......
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