How to Modify “Stage View” Color when “Abort” is selected

13 views
Skip to first unread message

Reid Watson

unread,
Aug 7, 2019, 2:07:01 AM8/7/19
to Jenkins Users

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




Example.png
Reply all
Reply to author
Forward
0 new messages