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

GitPlugin | Concurrent builds are serialized when publishing

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • Ubuntu 12.04, Jenkins 1.650, GitPlugin 2.4.2

      We're using a parameterized job, so that several branches of the same repo can be built concurrently. The job is configured to add a tag to the repo as a post-build action.
      When we have several jobs running, they sometimes get stuck: even though a job is finished, it "waits" for the previou jobs to finish. The message is:

      Git Publisher is waiting for a checkpoint on <job_name> #<prev_build_number>
      

      This causes a chain reaction, whereby several jobs are just hanging.

      I saw a similar issue in JENKINS-9913, but that seems to have been resolved, and it pertained to JUnit.

          [JENKINS-33238] GitPlugin | Concurrent builds are serialized when publishing

          ck1125 added a comment -

          Could this be down to the fact that the GitPublisher sets BuildStepMonitor.BUILD instead of BuildStepMonitor.NONE?

          ck1125 added a comment - Could this be down to the fact that the GitPublisher sets BuildStepMonitor.BUILD instead of BuildStepMonitor.NONE?

          Seems very likely, the only question is whether or not something in the code actually requires that restriction.

          Jim Carrothers added a comment - Seems very likely, the only question is whether or not something in the code actually requires that restriction.

          Ed Singleton added a comment -

          This is causing problems for me as well. We have significant variation in the speed of our slaves, and one slow build can now cause all others to delay. Is there any temporary workaround for this issue?

          Ed Singleton added a comment - This is causing problems for me as well. We have significant variation in the speed of our slaves, and one slow build can now cause all others to delay. Is there any temporary workaround for this issue?

          Sudhir Singh added a comment -

          We are also facing similar problem. Is there any workaround for this?

          Sudhir Singh added a comment - We are also facing similar problem. Is there any workaround for this?

          We are getting the same issue but with Memory Map Publisher plugin.

          Memory Map Publisher is waiting for a checkpoint on <Job Name> #<prev_build_number>
          

          If the previous job is taking too much time or stuck then then next job will also be taking time or stuck at this point.

          Rejeesh Chandran added a comment - We are getting the same issue but with Memory Map Publisher plugin. Memory Map Publisher is waiting for a checkpoint on <Job Name> #<prev_build_number> If the previous job is taking too much time or stuck then then next job will also be taking time or stuck at this point.

          Did anyone find a resolution or workaround to this problem?

          Pragya Jaiswal added a comment - Did anyone find a resolution or workaround to this problem?

          Moshe Zvi added a comment -

          It's always a bad sign when you search for a bug and realize you had already reported it two years ago :/

          One more thing: in the gitlab plugin, they resolved a similar issue:

          https://github.com/jenkinsci/gitlab-plugin/pull/397

          Maybe this can help?

          Moshe Zvi added a comment - It's always a bad sign when you search for a bug and realize you had already reported it two years ago :/ One more thing: in the gitlab plugin, they resolved a similar issue: https://github.com/jenkinsci/gitlab-plugin/pull/397 Maybe this can help?

          Mark Waite added a comment -

          Fixed in the master branch, will be included in git plugin 4.0.0

          Mark Waite added a comment - Fixed in the master branch, will be included in git plugin 4.0.0

          Mark Waite added a comment -

          Included in git plugin 4.0.0 released Nov 2, 2019

          Mark Waite added a comment - Included in git plugin 4.0.0 released Nov 2, 2019

            markewaite Mark Waite
            moshe_zvi Moshe Zvi
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: