Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-06 08:33:33 +00:00
parent e5f3bc546b
commit 650570153a

6
Jenkinsfile vendored
View File

@@ -38,13 +38,15 @@ pipeline {
message "Select the environment to deploy to" message "Select the environment to deploy to"
ok "Done" ok "Done"
parameters { parameters {
choice(name: 'ENV', choices: ['dev', 'staging', 'prod'], description: '') choice(name: 'ENV-ONE', choices: ['dev', 'staging', 'prod'], description: '')
choice(name: 'ENV-TWO', choices: ['dev', 'staging', 'prod'], description: '')
} }
} }
steps { steps {
script { script {
gv.deployApp() gv.deployApp()
echo "Deploying to ${ENV}" echo "Deploying to ${ENV-ONE}"
echo "Deploying to ${ENV-TWO}"
} }
} }
} }