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

Multiple triggers of the same type only send the last one configured

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      Maybe this a feature I misunderstood, but as far as I can see in the changelog, in version 2.31 this was added:

      • Changed way that triggers work so that you can add multiple triggers of the same type

      However, in my case only the last one configured is actually sent:

      Email was triggered for: 2nd Failure
      Email was triggered for: 2nd Failure
      Trigger Failure was overridden by another trigger and will not send an email.
      Trigger Still Failing was overridden by another trigger and will not send an email.
      Sending email for trigger: 2nd Failure
      Sending email to: ************
      Notifying upstream projects of job completion
      Finished: FAILURE

      If I change the order of the triggers, then the other one is sent, but never both. Am I missing anything?

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          No, this looks like a bug, I'll take a look.

          Show
          slide_o_mix Alex Earl added a comment - No, this looks like a bug, I'll take a look.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: slide
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/80f5bbdb6de69e9e6ee896e50f062ec6c1adf8ad
          Log:
          Fix JENKINS-20524

          Changed to Multimap from just a normal Map so that triggers don't get
          overwritten.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/80f5bbdb6de69e9e6ee896e50f062ec6c1adf8ad Log: Fix JENKINS-20524 Changed to Multimap from just a normal Map so that triggers don't get overwritten.
          Hide
          slide_o_mix Alex Earl added a comment -

          Changed to Multimap from Map to avoid overwriting the set of triggers. Also, added a test for multiple triggers of the same type.

          Show
          slide_o_mix Alex Earl added a comment - Changed to Multimap from Map to avoid overwriting the set of triggers. Also, added a test for multiple triggers of the same type.
          Hide
          maqy Fernando Borrego Polo added a comment -

          Great, thanks, do you know when this is going to be released?

          Show
          maqy Fernando Borrego Polo added a comment - Great, thanks, do you know when this is going to be released?
          Hide
          slide_o_mix Alex Earl added a comment -

          Should be the end of this week I think. I'd like to pick up the move to the new LTS, but I am not sure when that is happening.

          Show
          slide_o_mix Alex Earl added a comment - Should be the end of this week I think. I'd like to pick up the move to the new LTS, but I am not sure when that is happening.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              maqy Fernando Borrego Polo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: