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

Concurrent builds are blocking with jira-plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      For jobs that have concurrent builds enabled and use jira-plugin as a post-build step, jira-plugin with hang with this message if later builds complete before earlier builds:

      Update relevant JIRA issues is waiting for a checkpoint on foo #123

      This can lead to a lot of idle executors.

      This behavior is related to getRequiredMonitorService() returning BuildStepMonitor.BUILD instead of BuildStepMonitor.NONE.

      While searching for why this is happening, I see some plugins have resolved this by simply changing the value returned (https://github.com/jenkinsci/nunit-plugin/commit/1e89e0267814d280b7051d7d70d5d2939326b182) while other plugins needed slightly more complicated solutions (https://github.com/jglick/email-ext-plugin/commit/6fb41818d63ca0067171f8c01fcdbed196335b44)

      Although I can make the 1 line change, I do not know plugin well enough to know if its that simple.

        Attachments

          Activity

          Hide
          warden Radek Antoniuk added a comment -

          Are there any logs you could attach for this bug?

          Show
          warden Radek Antoniuk added a comment - Are there any logs you could attach for this bug?
          Hide
          mvtorres Mark Torres added a comment -

          Attached relevant log on our build. This log is for build#12047

          The build pauses at

          "Update relevant JIRA issues is waiting for a checkpoint on cnc-reactor #12046"

          for a while.

          This happens when we aborted build #12047. There was another build for the same project happening at the same time(build#12046)

          Show
          mvtorres Mark Torres added a comment - Attached relevant log on our build. This log is for build#12047 The build pauses at "Update relevant JIRA issues is waiting for a checkpoint on cnc-reactor #12046" for a while. This happens when we aborted build #12047. There was another build for the same project happening at the same time(build#12046)
          Hide
          elliot_nelson Elliot Nelson added a comment -

          We've also been experiencing this.  I have proposed a PR that I believe will fix this here: https://github.com/jenkinsci/jira-plugin/pull/123.

          Show
          elliot_nelson Elliot Nelson added a comment - We've also been experiencing this.  I have proposed a PR that I believe will fix this here:  https://github.com/jenkinsci/jira-plugin/pull/123 .

            People

            Assignee:
            elliot_nelson Elliot Nelson
            Reporter:
            cbagwell Chris Bagwell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: