[JIRA] (JENKINS-55459) failFast option for parallel stages should be able to set build result to FAILED

2 views
Skip to first unread message

owen@nerdnetworks.org (JIRA)

unread,
Jan 8, 2019, 8:31:01 PM1/8/19
to jenkinsc...@googlegroups.com
Owen Mehegan created an issue
 
Jenkins / Improvement JENKINS-55459
failFast option for parallel stages should be able to set build result to FAILED
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2019-01-09 01:30
Priority: Minor Minor
Reporter: Owen Mehegan

If a user has a Pipeline script with parallel stages, and they set 'failFast true' for those stages, if one of the stages fails then the build is immediately aborted. The result of the build is set to ABORTED. It would be better if there was a way to optionally have the build result be FAILED in this case. Although it makes a kind of logical sense for it to be ABORTED, because we have told Jenkins to abort the build, we did so because a stage failed. If we didn't failFast, the build's result would always be FAILED. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andrew.bayer@gmail.com (JIRA)

unread,
Jan 23, 2019, 2:40:02 PM1/23/19
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: workflow-cps-plugin
Component/s: pipeline-model-definition-plugin

andrew.bayer@gmail.com (JIRA)

unread,
Jan 23, 2019, 2:40:02 PM1/23/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 20, 2019, 2:39:02 PM2/20/19
to jenkinsc...@googlegroups.com
Devin Nusbaum updated an issue
Change By: Devin Nusbaum
Component/s: pipeline-model-definition-plugin
Component/s: workflow-cps-plugin

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 20, 2019, 2:44:02 PM2/20/19
to jenkinsc...@googlegroups.com
Devin Nusbaum updated an issue
If a user has a Declarative Pipeline script with parallel stages, and they set 'failFast true' for those stages, if one of the stages fails then the build is immediately aborted. The result of the build is set to ABORTED. It would be better if there was a way to optionally have the build result be FAILED FAILURE in this case (in a scripted pipeline the result will be FAILURE) . Although it makes a kind of logical sense for it to be ABORTED, because we have told Jenkins to abort the build, we did so because a stage failed. If we didn't failFast, the build's result would always be FAILED FAILURE .  

Here is an example Declarative Pipeline that demonstrates the problem:

{noformat}
pipeline {
    agent any
    stages {
        stage('Parallel Stage') {
            failFast true
            parallel {
                stage('Branch A') {
                    steps {
                     sh 'false'
                    }
                }
                stage('Branch B') {
                    steps {
                     sleep 10
                     echo "On Branch B"
                    }
                }
            }
        }
    }
}
{noformat}

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 22, 2019, 4:43:03 PM2/22/19
to jenkinsc...@googlegroups.com
Devin Nusbaum started work on Improvement JENKINS-55459
 
Change By: Devin Nusbaum
Status: Open In Progress

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 22, 2019, 4:43:03 PM2/22/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 22, 2019, 4:43:03 PM2/22/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 28, 2019, 4:15:03 PM2/28/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Feb 28, 2019, 4:16:03 PM2/28/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Mar 4, 2019, 3:58:03 PM3/4/19
to jenkinsc...@googlegroups.com
 

The fix for this issue was released in version 1.3.5 of the Pipeline: Declarative Plugin.

Change By: Devin Nusbaum
Status: Fixed but Unreleased Resolved
Released As: pipeline-model-definition 1.3.5

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:39 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages