[JIRA] (JENKINS-53659) support for parallel Stages nested in stages for ressource locking

2 views
Skip to first unread message

torsten.kleiber@ikb.de (JIRA)

unread,
Sep 19, 2018, 9:50:07 AM9/19/18
to jenkinsc...@googlegroups.com
Torsten Kleiber created an issue
 
Jenkins / New Feature JENKINS-53659
support for parallel Stages nested in stages for ressource locking
Issue Type: New Feature New Feature
Assignee: Andrew Bayer
Components: lockable-resources-plugin, pipeline-model-definition-plugin
Created: 2018-09-19 13:49
Environment: Jenkins 2.138.1
Priority: Critical Critical
Reporter: Torsten Kleiber

I don't want nest parallel in parallel.
My use case is locking a resource for the parallel and sequential stages as a whole:

pipeline {
    agent any
    stages {
        stage('Lock wrapper') {
            options {
              lock('resource')
            }     
            stages {
                stage('Sequential 1') {
                    steps {
                        echo "Sequential 1"
                    }
                }
                stage('Sequential 2') {
                    parallel {
                        stage('Parallel 2a') {
                            steps {
                                echo "Parallel 2a"
                            }
                        }
                    }
                }
            }
        }
    }
}

But this gives following error:
Parallel stages or branches can only be included in a top-level stage.

My final pipeline has far more than these stages, so lock of the whole pipeline is not an option.

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

andrew.bayer@gmail.com (JIRA)

unread,
Oct 2, 2018, 10:35:14 AM10/2/18
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:13 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

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