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

Concurrent builds using postbuildscript plugin will wait for all the instances to finish

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: postbuildscript-plugin
    • Labels:
      None
    • Environment:
      Tested with Jenkins 1.454 and 1.492 and postbuildscript 0.10
    • Similar Issues:

      Description

      If concurrent builds are enabled ("Execute concurrent builds if necessary" option) and the job is using postbuildscript plugin, then a build will wait for all the previous builds to finish before it completes.

      As an example, say you have a job that sleeps a certain period and then uses postbuildscript to echo "hello world" with "Execute Windows Batch Command". If you now start three builds right after the other with parameters:
      #1 sleeps 60s
      #2 sleeps 30s
      #3 sleeps 70s
      You'll notice that builds #1 and #2 actually both take 60s to complete. Build #3 takes 70s. So build #2 waits for build #1 to finish.

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              miktap Mikko Tapaninen
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: