From cdacbeeec4edd7a558d379cf02f7fc5b12059a51 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Fri, 6 Nov 2020 09:14:56 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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}" } } }