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

Add Pre-Build Trigger to email-ext

    XMLWordPrintable

Details

    • Patch
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • email-ext-plugin
    • None
    • Platform: All, OS: All

    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

          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.

          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.
          akarl16 akarl16 added a comment -

          Created an attachment (id=828)
          Zipped Patch File

          akarl16 akarl16 added a comment - Created an attachment (id=828) Zipped Patch File

          People

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

            Dates

              Created:
              Updated:
              Resolved: