From e5f3bc546bd9bf051b47850db535316051cdae79 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Fri, 6 Nov 2020 08:28:39 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 64ec416..30d3d2a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,9 +34,17 @@ pipeline { } } stage("deploy") { + input { + message "Select the environment to deploy to" + ok "Done" + parameters { + choice(name: 'ENV', choices: ['dev', 'staging', 'prod'], description: '') + } + } steps { script { gv.deployApp() + echo "Deploying to ${ENV}" } } }