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

Multiple pipeline instances running concurrently when concurrent execution disabled

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 2.7.1
      Jenkins 2.49
      Pipeline plugin 2.4
    • Similar Issues:
    • Released As:
      Jenkins 2.136

      Description

      I have configured a Jenkins pipeline to disable concurrent builds:

      properties([
          disableConcurrentBuilds()
      ])
      

      However, I have noticed on some occasions the next 2 builds are pulled from the pipeline's queue and executed concurrently. Why this occurs is not obvious at all.

        Attachments

          Issue Links

            Activity

            boon Joe Harte created issue -
            boon Joe Harte made changes -
            Field Original Value New Value
            Description I have configured a Jenkins pipeline to disabled concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently. This seems to happen when the pipeline is triggered by an upstream job at the same time that a user manually triggers it - possible race condition?
            I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently. This seems to happen when the pipeline is triggered by an upstream job at the same time that a user manually triggers it - possible race condition?
            boon Joe Harte made changes -
            Description I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently. This seems to happen when the pipeline is triggered by an upstream job at the same time that a user manually triggers it - possible race condition?
            I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently. This seems to happen when the pipeline is triggered by an upstream job at the same time that a user manually triggers it - possible race condition?

            Will attach logs when this occurs again, don't currently have them available.
            boon Joe Harte made changes -
            Environment Jenkins 2.7.1
            Pipeline plugin 2.4
            Jenkins 2.7.1
            Jenkins 2.49
            Pipeline plugin 2.4
            jglick Jesse Glick made changes -
            Component/s workflow-job-plugin [ 21716 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Labels bug concurrent pipeline concurrent
            boon Joe Harte made changes -
            Component/s throttle-concurrent-builds-plugin [ 15745 ]
            Component/s workflow-job-plugin [ 21716 ]
            boon Joe Harte made changes -
            Component/s workflow-job-plugin [ 21716 ]
            Component/s throttle-concurrent-builds-plugin [ 15745 ]
            boon Joe Harte made changes -
            Description I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently. This seems to happen when the pipeline is triggered by an upstream job at the same time that a user manually triggers it - possible race condition?

            Will attach logs when this occurs again, don't currently have them available.
            I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently for no apparent reason; the next 2 builds are pulled from the queue and exited at the same time.
            boon Joe Harte made changes -
            Description I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions multiple instances of the pipeline execute concurrently for no apparent reason; the next 2 builds are pulled from the queue and exited at the same time.
            I have configured a Jenkins pipeline to disable concurrent builds:

            {code}
            properties([
                disableConcurrentBuilds()
            ])
            {code}

            However, I have noticed on some occasions the next 2 builds are pulled from the pipeline's queue and executed concurrently. Why this occurs is not obvious at all.
            jglick Jesse Glick made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            abayer Andrew Bayer made changes -
            Component/s core [ 15593 ]
            Component/s workflow-job-plugin [ 21716 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal CD-436 (Web Link)" [ 20566 ]
            recampbell Ryan Campbell made changes -
            Link This issue relates to JENKINS-30231 [ JENKINS-30231 ]
            rkivisto Ray Kivisto made changes -
            Remote Link This issue links to "CloudBees Internal CD-437 (Web Link)" [ 21211 ]
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "jenkinsci/jenkins#3562 (Web Link)" [ 21228 ]
            dnusbaum Devin Nusbaum made changes -
            Assignee Devin Nusbaum [ dnusbaum ]
            dnusbaum Devin Nusbaum made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            dnusbaum Devin Nusbaum made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Released As Jenkins 2.136
            dnusbaum Devin Nusbaum made changes -
            Labels concurrent concurrent lts-candidate
            olivergondza Oliver Gond┼ża made changes -
            Labels concurrent lts-candidate concurrent

              People

              • Assignee:
                dnusbaum Devin Nusbaum
                Reporter:
                boon Joe Harte
              • Votes:
                3 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: