[JIRA] (JENKINS-62053) Retry does not abort if a failure has happened during parallel executions

1 view
Skip to first unread message

john.pastore20@gmail.com (JIRA)

unread,
Apr 25, 2020, 10:45:02 AM4/25/20
to jenkinsc...@googlegroups.com
John Pastore created an issue
 
Jenkins / Bug JENKINS-62053
Retry does not abort if a failure has happened during parallel executions
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Screen Shot 2020-04-25 at 10.37.32 AM.png, Screen Shot 2020-04-25 at 10.38.12 AM.png
Components: workflow-basic-steps-plugin
Created: 2020-04-25 14:44
Environment: Jenkins = 2.204.2
Pipeline: Basic Steps = 2.19
Labels: plugin
Priority: Minor Minor
Reporter: John Pastore

When wrapping parallel steps in a retry block, if you attempt to abort the run after a stage has failed, it will continue retrying instead of aborting.  Jenkins will also mark the build result as aborted, even though it continued with the retry and failed.  Because of this the stop button in Blue Ocean will be grayed out, until the page is refreshed.  And the only way to get the pipeline to finally abort, is to either abort it before a failure happens, or manually abort each retry.

 

node {    
    stage('one') { 
       sleep 5 
    }
    stage('two') {
        retry(3) {
            parallel slowTask1: {
                sleep 30
            }, slowTask2: {
                sleep 30
            }, failingTask: {
                sh 'exit 1'
            },
            failFast: false
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages