Commit 9ef369d4 authored by daidekun's avatar daidekun

rollback

parent 9f84b218
...@@ -29,12 +29,7 @@ def call(body) { ...@@ -29,12 +29,7 @@ def call(body) {
stage('Deploy') { stage('Deploy') {
when { if (action == 'deploy') {
expression {
return action == 'deploy';
}
}
steps {
echo 'deploy' echo 'deploy'
arr_machines = machines.split(",") arr_machines = machines.split(",")
count = arr_machines.size() count = arr_machines.size()
...@@ -52,15 +47,11 @@ def call(body) { ...@@ -52,15 +47,11 @@ def call(body) {
} }
} }
} }
when { if (action == 'rollback') {
expression {
return action == 'rollback';
}
}
steps {
echo 'rollback' 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