[JIRA] (JENKINS-40012) Unable to set concurrency for a stage

2 views
Skip to first unread message

n27@3ds.com (JIRA)

unread,
Nov 24, 2016, 8:19:02 AM11/24/16
to jenkinsc...@googlegroups.com
aurelien leboulanger created an issue
 
Jenkins / Improvement JENKINS-40012
Unable to set concurrency for a stage
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2016/Nov/24 1:18 PM
Environment: Jenkins 2.25
pipeline model defintion 0.6
Labels: plugin pipeline
Priority: Major Major
Reporter: aurelien leboulanger

In the jenkins default pipeline syntax i can do this configuration

stage name: 'staging', concurrency: 1

I tried to apply the same concept with the model definition syntax but it appears to not works.

stage (name: 'staging test', concurrency: 1) {
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Nov 28, 2016, 12:30:03 PM11/28/16
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Improvement JENKINS-40012
 
Re: Unable to set concurrency for a stage

concurrency on a stage is deprecated in Scripted Pipeline and not an available feature at all for Declarative Pipeline. What are you trying to accomplish? The milestone step may be what you're looking for.

pwolf@cloudbees.com (JIRA)

unread,
Dec 23, 2016, 3:02:04 PM12/23/16
to jenkinsc...@googlegroups.com

milestone step doesn't create concurrency it aborts older runs when a newer run has already passed it. You would want to use the lock step from the "Lockable Resources Plugin".

https://jenkins.io/blog/2016/10/16/stage-lock-milestone/

pipeline {
  agent any

  stages {
    stage("Foo") {
      steps {
        lock("myresource") {
           echo "foo"
        }
      }
    }
  }
}

andrew.bayer@gmail.com (JIRA)

unread,
Feb 27, 2017, 4:36:04 PM2/27/17
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Won't Fix
 
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Won't Fix

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:24 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Won't Fix
 

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