Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34547

Make WorkflowJob.concurrentBuild into a JobProperty

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      As described in JENKINS-30519.

        Attachments

          Issue Links

            Activity

            Hide
            sc_rsc Stefan Cordes added a comment -

            Moving

            properties ([
            buildDiscarder(logRotator(numToKeepStr: '5'))
            ,
            disableConcurrentBuilds()
            ]);
            

            to the very first line does not hinder 2 feature branches to build in parallel (as reported in JENKINS-35359)

            Show
            sc_rsc Stefan Cordes added a comment - Moving properties ([ buildDiscarder(logRotator(numToKeepStr: '5')) , disableConcurrentBuilds() ]); to the very first line does not hinder 2 feature branches to build in parallel (as reported in JENKINS-35359 )
            Hide
            pleibiger Peter Leibiger added a comment -

            Stefan Cordes AFAIK two feature branches are two different jobs with two different workspaces. You can not prevent concurrent builds this way.

            Show
            pleibiger Peter Leibiger added a comment - Stefan Cordes AFAIK two feature branches are two different jobs with two different workspaces. You can not prevent concurrent builds this way.
            Hide
            sc_rsc Stefan Cordes added a comment -

            Correct. Taking a look into WorkflowJob.java shows that it is kind of Workspace-Lock.

            Show
            sc_rsc Stefan Cordes added a comment - Correct. Taking a look into  WorkflowJob.java  shows that it is kind of Workspace-Lock.
            Hide
            pbrokemann Kofi Brokemann added a comment -

            Hi is there a way to set properties for a multibranch / organization job to prevent concurrent builds? I know multi-branch jobs work in two different workspaces but would it be possible to provide a setting prevent concurrent builds at the project level?

            Show
            pbrokemann Kofi Brokemann added a comment - Hi is there a way to set properties for a multibranch / organization job to prevent concurrent builds? I know multi-branch jobs work in two different workspaces but would it be possible to provide a setting prevent concurrent builds at the project level?
            Hide
            jglick Jesse Glick added a comment -

            Kofi Brokemann this is a question for the users’ list, not JIRA.

            Show
            jglick Jesse Glick added a comment - Kofi Brokemann this is a question for the users’ list, not JIRA.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                jglick Jesse Glick
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: