Update Jenkinsfile
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user