Update Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -38,15 +38,15 @@ pipeline {
|
|||||||
message "Select the environment to deploy to"
|
message "Select the environment to deploy to"
|
||||||
ok "Done"
|
ok "Done"
|
||||||
parameters {
|
parameters {
|
||||||
choice(name: 'ENV-ONE', choices: ['dev', 'staging', 'prod'], description: '')
|
choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '')
|
||||||
choice(name: 'ENV-TWO', choices: ['dev', 'staging', 'prod'], description: '')
|
choice(name: 'TWO', choices: ['dev', 'staging', 'prod'], description: '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
gv.deployApp()
|
gv.deployApp()
|
||||||
echo "Deploying to ${ENV-ONE}"
|
echo "Deploying to ${ONE}"
|
||||||
echo "Deploying to ${ENV-TWO}"
|
echo "Deploying to ${TWO}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user