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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • 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

          Hide
          teetoivo Teemu Toivola added a comment -

          This problem is still visible with Jenkins 1.509.3 + postbuildscript 0.14 and essentially blocks the usage of this plugin when concurrent builds are needed.

          Show
          teetoivo Teemu Toivola added a comment - This problem is still visible with Jenkins 1.509.3 + postbuildscript 0.14 and essentially blocks the usage of this plugin when concurrent builds are needed.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java
          http://jenkins-ci.org/commit/postbuildscript-plugin/489f7a20c41c20fa00916b17ae4059f0057ec03f
          Log:
          FIx JENKINS-16789

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java http://jenkins-ci.org/commit/postbuildscript-plugin/489f7a20c41c20fa00916b17ae4059f0057ec03f Log: FIx JENKINS-16789
          Hide
          gbois Gregory Boissinot added a comment -

          Please test from 0.16

          Show
          gbois Gregory Boissinot added a comment - Please test from 0.16

            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: