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

BuildStepMonitor.BUILD makes concurrent builds wait, could be changed to BuildStepMonitor.NONE?

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None

      We perform many concurrent builds in one job and are using the email-ext plugin. Sometimes and older build takes longer time to finish and then the new jobs just waits to be finished because BuildStepMonitor.BUILD is configured in the plugin.

      Could this one line be changed?

          [JENKINS-16376] BuildStepMonitor.BUILD makes concurrent builds wait, could be changed to BuildStepMonitor.NONE?

          Alex Earl added a comment -

          Not really, if you would like to submit a pull request for review, please do so.

          Alex Earl added a comment - Not really, if you would like to submit a pull request for review, please do so.

          Jesse Glick added a comment -

          Pull #79.

          Jesse Glick added a comment - Pull #79.

          Alex Earl added a comment -

          I'll review this as soon as possible and merge it.

          Alex Earl added a comment - I'll review this as soon as possible and merge it.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/plugins/content/AbstractChangesSinceContent.java
          src/main/java/hudson/plugins/emailext/plugins/content/BuildStatusContent.java
          src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContent.java
          src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastSuccessfulBuildContent.java
          src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastUnstableBuildContent.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/BuildingTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/FixedTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/FixedUnhealthyTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/ImprovementTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/NthFailureTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/StatusChangedTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/StillFailingTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/StillUnstableTrigger.java
          src/main/resources/hudson/plugins/emailext/Messages.properties
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/6fb41818d63ca0067171f8c01fcdbed196335b44
          Log:
          [FIXED JENKINS-16376] Never wait for previous builds to complete just to get a more precise status.
          If and when we need to know the status of a previous build but it is still running,
          simply print a warning to the (current build’s) log and proceed as if the previous build did not exist.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/plugins/content/AbstractChangesSinceContent.java src/main/java/hudson/plugins/emailext/plugins/content/BuildStatusContent.java src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContent.java src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastSuccessfulBuildContent.java src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastUnstableBuildContent.java src/main/java/hudson/plugins/emailext/plugins/trigger/BuildingTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FixedTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FixedUnhealthyTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/ImprovementTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/NthFailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/StatusChangedTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/StillFailingTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/StillUnstableTrigger.java src/main/resources/hudson/plugins/emailext/Messages.properties src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/6fb41818d63ca0067171f8c01fcdbed196335b44 Log: [FIXED JENKINS-16376] Never wait for previous builds to complete just to get a more precise status. If and when we need to know the status of a previous build but it is still running, simply print a warning to the (current build’s) log and proceed as if the previous build did not exist.

          When do you plan the next release? This is the highly anticipated feature.

          Greg Temchenko added a comment - When do you plan the next release? This is the highly anticipated feature.

          m_broida added a comment -

          This is not fixed in 1.542.
          We're waiting for this fix before we upgrade.
          Changelog does not show this issue (or any of the duplicated/related issues) have ever been incorporated/released.
          When will this fix be incorporated?

          m_broida added a comment - This is not fixed in 1.542. We're waiting for this fix before we upgrade. Changelog does not show this issue (or any of the duplicated/related issues) have ever been incorporated/released. When will this fix be incorporated?

          Alex Earl added a comment -

          What do you mean 1.542? This is a bug against email-ext, not core. Email-ext does not have a version 1.542.

          Alex Earl added a comment - What do you mean 1.542? This is a bug against email-ext, not core. Email-ext does not have a version 1.542.

          m_broida added a comment -

          Sorry. I reached this issue from a different issue and thought it was still against Jenkins itself.
          I meant Jenkins version 1.542.

          I see from the email-ext changelog that version 2.37 has this fix in it.
          We're using 2.36, so an update should fix this for us. Thanks!

          m_broida added a comment - Sorry. I reached this issue from a different issue and thought it was still against Jenkins itself. I meant Jenkins version 1.542. I see from the email-ext changelog that version 2.37 has this fix in it. We're using 2.36, so an update should fix this for us. Thanks!

          We need this to be change for performance publisher plugin too. Can I contribute?

          https://github.com/jenkinsci/performance-plugin/search?utf8=%E2%9C%93&q=BuildStepMonitor+getRequiredMonitorService

          Thanks

          Sandeep Dhingra added a comment - We need this to be change for performance publisher plugin too. Can I contribute? https://github.com/jenkinsci/performance-plugin/search?utf8=%E2%9C%93&q=BuildStepMonitor+getRequiredMonitorService Thanks

          Alex Earl added a comment -

          Please open a new issue for the performance plugin. This issue is for email-ext.

          Alex Earl added a comment - Please open a new issue for the performance plugin. This issue is for email-ext.

            jglick Jesse Glick
            nicefred Fredrik Jonsson
            Votes:
            4 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: