Update Jenkinsfile
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -34,19 +34,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("deploy") {
|
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 {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
env.ENV = input message: "Select the environment to deploy to", ok: "Done", parameters: [choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '')]
|
||||||
|
|
||||||
gv.deployApp()
|
gv.deployApp()
|
||||||
echo "Deploying to ${ONE}"
|
echo "Deploying to ${ENV}"
|
||||||
echo "Deploying to ${TWO}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user