[JIRA] (JENKINS-53558) Apply top level failFast option to all parallel stages inside Jenkinsfile.

141 views
Skip to first unread message

sheeeng@gmail.com (JIRA)

unread,
Sep 13, 2018, 8:31:01 AM9/13/18
to jenkinsc...@googlegroups.com
Leonard Lee created an issue
 
Jenkins / New Feature JENKINS-53558
Apply top level failFast option to all parallel stages inside Jenkinsfile.
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: pipeline
Created: 2018-09-13 12:30
Priority: Minor Minor
Reporter: Leonard Lee

We would like to have a top-level option failFast true for all parallel stages inside a single Jenkinsfile.

pipeline {
    agent any
    stages {
        failFast true // Could we have a top-level failFast option?
        stage('Parallel Stage One') {
            // failFast true
            parallel {
                stage('Stage A') { }
                stage('Stage B') { }
                stage('Stage C') { }
            }
        }
        stage('Parallel Stage Two') {
            // failFast true
            parallel {
                stage('Stage D') { }
                stage('Stage E') { }
                stage('Stage F') { }
            }
        }
        stage('Parallel Stage Three') {
            // failFast true
            parallel {
                stage('Stage G') { }
                stage('Stage H') { }
                stage('Stage I') { }
            }
        }
    }
}

 

 

 

 

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

andrew.bayer@gmail.com (JIRA)

unread,
Sep 25, 2018, 9:35:02 AM9/25/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: pipeline-model-definition-plugin
Component/s: pipeline

andrew.bayer@gmail.com (JIRA)

unread,
Nov 8, 2018, 9:13:02 AM11/8/18
to jenkinsc...@googlegroups.com
Andrew Bayer commented on New Feature JENKINS-53558
 
Re: Apply top level failFast option to all parallel stages inside Jenkinsfile.

I'd say the way to do this would be to have a top level-only option called something like parallelAlwaysFailsFast, and if it's set and there isn't an explicit failFast setting on a parallel block, we would make every parallel within the pipeline fail fast.

jtaboada@cloudbees.com (JIRA)

unread,
Nov 15, 2018, 3:00:03 AM11/15/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Nov 16, 2018, 10:07:02 AM11/16/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
We would like to have a top-level option ??failFast true?? for all parallel stages inside a single Jenkinsfile.
{code}
pipeline {
    agent any
    stages     options {
        failFast true // Could we have a top-level failFast option?         parallelsAlwaysFailFast()
    }
    stages {
        stage('Parallel Stage One') {
            // failFast true
            parallel {
                stage('Stage A') { }
                stage('Stage B') { }
                stage('Stage C') { }
            }
        }
        stage('Parallel Stage Two') {
            // failFast true
            parallel {
                stage('Stage D') { }
                stage('Stage E') { }
                stage('Stage F') { }
            }
        }
        stage('Parallel Stage Three') {
            // failFast true
            parallel {
                stage('Stage G') { }
                stage('Stage H') { }
                stage('Stage I') { }
            }
        }
    }
}
{code}
 

 

 

 

jtaboada@cloudbees.com (JIRA)

unread,
Nov 23, 2018, 6:29:03 AM11/23/18
to jenkinsc...@googlegroups.com
Status: Open In Progress

jtaboada@cloudbees.com (JIRA)

unread,
Nov 23, 2018, 6:29:04 AM11/23/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Nov 27, 2018, 7:35:03 AM11/27/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated New Feature JENKINS-53558
 

Will be in 1.3.3.

Change By: Andrew Bayer
Status: In Review Resolved
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:57 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