Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-06 09:14:56 +00:00
parent 1228821c74
commit cdacbeeec4

13
Jenkinsfile vendored
View File

@@ -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}"
}
}
}