Commit 9f84b218 authored by daidekun's avatar daidekun

rollback

parent 29982ba6
......@@ -28,6 +28,14 @@ def call(body) {
*/ }
stage('Deploy') {
when {
expression {
return action == 'deploy';
}
}
steps {
echo 'deploy'
arr_machines = machines.split(",")
count = arr_machines.size()
int_count = (count / 2).toInteger()
......@@ -43,7 +51,17 @@ def call(body) {
sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv"
}
}
}
when {
expression {
return action == 'rollback';
}
}
steps {
echo 'rollback'
}
}
}
}
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