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

Configurable global default triggers

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As a user I want to be able to configure default triggers for new jobs. I want standard mailer plugin behavior be default with fancy email-ext-plugin email formatting. It not possible as now it only triggers all failures by default. And I have no way to configure other default triggers(like status change).

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
          src/main/java/hudson/plugins/emailext/plugins/EmailTriggerDescriptor.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/AbortedTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/AlwaysTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/BuildingTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/FailureTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/FirstFailureTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/FirstUnstableTrigger.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/NotBuiltTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildScriptTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/ScriptTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/SecondFailureTrigger.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/java/hudson/plugins/emailext/plugins/trigger/SuccessTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/UnstableTrigger.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy
          src/main/webapp/help/globalConfig/defaultTriggers.html
          http://jenkins-ci.org/commit/email-ext-plugin/77e69ea8258e82f5634f84c58c56d0b797717dc7
          Log:
          Merge branch 'JENKINS-27856'

          Compare: https://github.com/jenkinsci/email-ext-plugin/compare/27fbded960fa...77e69ea8258e

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/java/hudson/plugins/emailext/plugins/EmailTriggerDescriptor.java src/main/java/hudson/plugins/emailext/plugins/trigger/AbortedTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/AlwaysTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/BuildingTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FirstFailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FirstUnstableTrigger.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/NotBuiltTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/ScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/SecondFailureTrigger.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/java/hudson/plugins/emailext/plugins/trigger/SuccessTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/UnstableTrigger.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy src/main/webapp/help/globalConfig/defaultTriggers.html http://jenkins-ci.org/commit/email-ext-plugin/77e69ea8258e82f5634f84c58c56d0b797717dc7 Log: Merge branch ' JENKINS-27856 ' Compare: https://github.com/jenkinsci/email-ext-plugin/compare/27fbded960fa...77e69ea8258e
          Hide
          slide_o_mix Alex Earl added a comment -

          Added ability to select the default triggers in the global configuration. Defaults to current FailureTrigger if no triggers are specified.

          Show
          slide_o_mix Alex Earl added a comment - Added ability to select the default triggers in the global configuration. Defaults to current FailureTrigger if no triggers are specified.
          Hide
          adonai Adonai Elohim added a comment -

          Addition: these default-created triggers for each project inherit only "Global Recipient List", not "Project Recipient List", however the help line claims the "Recipient List" option pulls emails from "Project Recipient List"

          Great work BTW.

          Show
          adonai Adonai Elohim added a comment - Addition: these default-created triggers for each project inherit only "Global Recipient List", not "Project Recipient List", however the help line claims the "Recipient List" option pulls emails from "Project Recipient List" Great work BTW.
          Hide
          slide_o_mix Alex Earl added a comment -

          Can you file a separate issue for that?

          Show
          slide_o_mix Alex Earl added a comment - Can you file a separate issue for that?
          Hide
          slide_o_mix Alex Earl added a comment -

          I don't see the same thing you do. When I set the list of default triggers to the "Always" trigger for instance. It has the "Recipients List" defined as one of the list of people to send to. When I put my email address into the project level recipients list, I get emailed. The failure trigger, by default, only sends to the developers, not the project recipients. You can add a recipient provider to the failure trigger and it will also send to the project recipients.

          Show
          slide_o_mix Alex Earl added a comment - I don't see the same thing you do. When I set the list of default triggers to the "Always" trigger for instance. It has the "Recipients List" defined as one of the list of people to send to. When I put my email address into the project level recipients list, I get emailed. The failure trigger, by default, only sends to the developers, not the project recipients. You can add a recipient provider to the failure trigger and it will also send to the project recipients.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              doino1990 Doino Gretchenliev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: