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

Not obvious why some post-build tasks enforce serial behavior even when builds are concurrent

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We're experiencing an issue with concurrent builds where Jenkins appears to be associating separate builds (run on different machines) such that they won't be marked as completed until all jobs are completed. For example, if we kick off 5 concurrent builds on 5 different nodes, builds 1-4 won't be marked as completed if build #5 is still running, even though builds 1-4 are finished. I've seen a report of someone experiencing this issue elsewhere:

      http://groups.google.com/group/jenkinsci-users/browse_thread/thread/e477e25910266d2a?fwc=1

      but a solution wasn't posted. We do not have the batch plugin or the locks and latches plugin installed. We've disabled all post-build processing and switched between different containers (Glassfish/Tomcat), but the problem persists. I couldn't find an issue logged for this other than the aforementioned posting.

        Attachments

          Issue Links

            Activity

            Hide
            notagain Not Again added a comment -

            Got bitten by the same thing. Now planning to move the post build stuff into an additional last step of the build job.
            Only problem is that I need to get data from the slave to master before that. And that is also a Post build action (I use Copy-To-Slave plugin). Any way I can do it as a part of build job only?

            Show
            notagain Not Again added a comment - Got bitten by the same thing. Now planning to move the post build stuff into an additional last step of the build job. Only problem is that I need to get data from the slave to master before that. And that is also a Post build action (I use Copy-To-Slave plugin). Any way I can do it as a part of build job only?
            Hide
            reksiopl M S added a comment -

            To resolve this problem use xplugin as an intermediary to nunit/junit.

            Show
            reksiopl M S added a comment - To resolve this problem use xplugin as an intermediary to nunit/junit.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Tim-Clifford
            Path:
            src/main/java/jenkins/plugins/slack/ActiveNotifier.java
            http://jenkins-ci.org/commit/slack-plugin/832e7b50028ca086dd49311ce454e7a19c9a3af9
            Log:
            Change .getPreviousBuild() to allow for higher concurrency

            Jenkins changed getPreviousBuild() to halt jobs if a previous
            build hasn't finished, meaning jobs of variable runtime end up
            being serialized:

            https://issues.jenkins-ci.org/browse/JENKINS-9913?focusedCommentId=184188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-184188

            This change switches to the latest completed build, allowing
            this plugin to work with jobs of variable length.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tim-Clifford Path: src/main/java/jenkins/plugins/slack/ActiveNotifier.java http://jenkins-ci.org/commit/slack-plugin/832e7b50028ca086dd49311ce454e7a19c9a3af9 Log: Change .getPreviousBuild() to allow for higher concurrency Jenkins changed getPreviousBuild() to halt jobs if a previous build hasn't finished, meaning jobs of variable runtime end up being serialized: https://issues.jenkins-ci.org/browse/JENKINS-9913?focusedCommentId=184188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-184188 This change switches to the latest completed build, allowing this plugin to work with jobs of variable length.
            Hide
            ericc Eric Cooper added a comment -

            My apologies if this is the wrong please to ask this but I really did look for the right place and couldn't find it - is there a schedule for when this fix will be released? I am running into this issue and would benefit from the fix.

            Show
            ericc Eric Cooper added a comment - My apologies if this is the wrong please to ask this but I really did look for the right place and couldn't find it - is there a schedule for when this fix will be released? I am running into this issue and would benefit from the fix.
            Hide
            jglick Jesse Glick added a comment -

            Eric Cooper there are distinct issues for various plugins.

            Show
            jglick Jesse Glick added a comment - Eric Cooper there are distinct issues for various plugins.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                pomvr Philip Metting van Rijn
              • Votes:
                19 Vote for this issue
                Watchers:
                34 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: