Pipeline: aborting an input step marks the stage as failed

16 views
Skip to first unread message

Lionel Orellana

unread,
Dec 13, 2016, 2:12:42 AM12/13/16
to Jenkins Users
Hi,

Consider this stage step with a body and an input step. 

stage ('Deploy') {
 input 'Ready to deploy?'
 ...
}

If the user clicks Abort on the manual input step the stage is marked as failed.

If the input step is moved outside of the stage then the dialog doesn't come up when the user hovers overs the stage so I want to keep it there. 

The old-style stage without a body would have been marked as Aborted:

stage 'Deploy'
input 'Ready to deploy?'

(if the user Aborts, the stage is rightly marked as Aborted). 

Is there a way to make this work with the new stage format? 

Cheers

Lionel.

Reply all
Reply to author
Forward
0 new messages