Commit 26b933f5 authored by daidekun's avatar daidekun

choice

parent eb6ce843
......@@ -20,6 +20,16 @@ def call(body) {
body()
node {
stage('choice') {
env.RELEASE_ACTION = input message: 'User input required', ok: 'Release!',
parameters: [choice(name: 'RELEASE_SCOPE', choices: 'deploy\nnginx_add', description: 'What is the action?')]
echo "${env.RELEASE_ACTION}"
/* currentBuild.result = 'SUCCESS'*/
return
}
stage('Clean') {
deleteDir()
}
......@@ -37,7 +47,6 @@ def call(body) {
/*yes*/
sh "ansible-playbook /etc/ansible/deploy.yml -e project_name=${project_name} -e room=${room} -e room_hosts=${hosts} -vv"
/*no*/
/* ansible-playbook /etc/ansible/nginx_add.yml -e project_name=${project_name} -e room=${room} -e room_hosts=${hosts} -vv*/
......
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