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

Add Pre-Build Trigger to email-ext

    XMLWordPrintable

    Details

    • Type: Patch
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I find it useful when using Hudson to queue up deployments across a cluster of
      servers to send a pre-build(pre-deploy in my case) email as well as a
      post-build(post-deploy) email. Email-ext can be easily extended via my patch to
      enable an additional, pre-build trigger.

      Note that I had to also tweak SuccessTrigger because it was firing even when the
      build had not really begun yet since it was only looking at the result status
      for each build. Since a build that hasn't started yet always has a result of
      Success it always fired. No other triggers have this problem because they all
      look for results other than Success.

        Attachments

          Activity

          Hide
          akarl16 akarl16 added a comment -

          Created an attachment (id=828)
          Zipped Patch File

          Show
          akarl16 akarl16 added a comment - Created an attachment (id=828) Zipped Patch File
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=25486
          Log:
          [FIXED JENKINS-4190] Add "Before Build" trigger type, based on patch from akarl16.
          Also don't add MailMessageIdAction to build if it already has one.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java http://fisheye4.cenqua.com/changelog/hudson/?cs=25486 Log: [FIXED JENKINS-4190] Add "Before Build" trigger type, based on patch from akarl16. Also don't add MailMessageIdAction to build if it already has one.

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              akarl16 akarl16
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: