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

Make WorkflowJob.concurrentBuild into a JobProperty

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • pipeline
    • None

    Description

      As described in JENKINS-30519.

      Attachments

        Issue Links

          Activity

            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)

            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 )

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

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

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

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

            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?

            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?
            jglick Jesse Glick added a comment -

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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: