When a user selects “Abort” the “Stage View” presents the colour green to the user.
The requirement is to change the colour to Amber / Yellow or anything except Green.
The pipeline script contains “try” / “Catch” block when selecting the server. The “return” allows the user to process to the next stage but the "Abort" option sets the stage to Green.
stage('DEV Build') {
steps {
script {
try {
env.release_server = input message: 'User input required', ok: 'Release!',
parameters: [choice(name: 'RELEASE_SERVER', choices: ‘server01\nserver02', description: ‘Select server')]
}
catch (Exception e) {
return
}
Cheers
Reid