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

Do not send "improvement" email if build is fixed

    Details

    • Similar Issues:

      Description

      Currently, the email-ext plugin sends emails as follows:

      Improvement - An email will be sent any time there is an improvement. A build is considered to have improved whenever it has fewer failures than the previous build.
      Fixed - An email will be sent when the build status changes from "Failure" or "Unstable" to "Successful".

      However, there is an ovelap between these two conditions. If both triggers are configured, and a build changes from "failing tests" to "no failing tests", then two emails are sent.

      Improvement should mean that the number of failing tests decreased, but some were still failing. "Fixed" should mean all tests were fixed.

      Thanks

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment - - edited

          The only problem with this is that the improvement trigger has no idea that the success trigger is configured.

          Was really tired, it doesn't need to know if the fixed trigger is configured.

          Show
          slide_o_mix Alex Earl added a comment - - edited The only problem with this is that the improvement trigger has no idea that the success trigger is configured. Was really tired, it doesn't need to know if the fixed trigger is configured.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: slide
          Path:
          src/main/java/hudson/plugins/emailext/plugins/trigger/ImprovementTrigger.java
          http://jenkins-ci.org/commit/email-ext-plugin/a82a1c9b2bbd9edd4fba78f95f012d8efe494a04
          Log:
          Fix JENKINS-14500

          • Added a check to see if there are ANY failures, if not then don't send an improvement email.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide Path: src/main/java/hudson/plugins/emailext/plugins/trigger/ImprovementTrigger.java http://jenkins-ci.org/commit/email-ext-plugin/a82a1c9b2bbd9edd4fba78f95f012d8efe494a04 Log: Fix JENKINS-14500 Added a check to see if there are ANY failures, if not then don't send an improvement email.
          Hide
          mwebber Matthew Webber added a comment -

          That's exactly what I was after. Thanks for your quick response, I'll try it as soon as it's released.

          Show
          mwebber Matthew Webber added a comment - That's exactly what I was after. Thanks for your quick response, I'll try it as soon as it's released.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              mwebber Matthew Webber
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: