diff --git a/Jenkinsfile b/Jenkinsfile index 549586b..f2949fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,19 +34,12 @@ pipeline { } } stage("deploy") { - input { - message "Select the environment to deploy to" - ok "Done" - parameters { - choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '') - choice(name: 'TWO', choices: ['dev', 'staging', 'prod'], description: '') - } - } steps { script { + env.ENV = input message: "Select the environment to deploy to", ok: "Done", parameters: [choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '')] + gv.deployApp() - echo "Deploying to ${ONE}" - echo "Deploying to ${TWO}" + echo "Deploying to ${ENV}" } } }