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
                    }


Does any onehave a workaround for this issue ?


Cheers


Reid 




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0e0c471f-a2c9-4d6f-85fc-1e841e2fe589%40googlegroups.com.

Reply via email to