Generally - to trigger an action on the promotion failure.
      Sending a mail is a most obvious example.

      Right now a promotion is a sequential process. Any failure stops it. So Email-ext step is executed only on a promotion success and only for "Success" trigger.

          [JENKINS-8965] Send mail on a failed promotion

          When promotion fails, this behavior prevents and feedback to be sent to the person that caused the failure.
          A solution could be to add a separate global action with options to trigger notifications about failures in any promotion step.

          Daniel Fröding added a comment - When promotion fails, this behavior prevents and feedback to be sent to the person that caused the failure. A solution could be to add a separate global action with options to trigger notifications about failures in any promotion step.

          Lucas Meadows added a comment -

          +1. It would be really helpful if failed promotions could trigger an email.

          Lucas Meadows added a comment - +1. It would be really helpful if failed promotions could trigger an email.

          Steve Mitchell added a comment - - edited

          This can be done using the log parser and extended email plugins as follows:

          1. Have your promotion execute an external script
          2. Have the script, upon failure, print out an error message but not return any error code (i.e. catch the error)
          3. Configure parsing rules for the log parser to recognize the error message and flag it as an error
          4. Configure the extended email plugin to send the "promotion failed" email using a FAIL trigger

          Steve Mitchell added a comment - - edited This can be done using the log parser and extended email plugins as follows: 1. Have your promotion execute an external script 2. Have the script, upon failure, print out an error message but not return any error code (i.e. catch the error) 3. Configure parsing rules for the log parser to recognize the error message and flag it as an error 4. Configure the extended email plugin to send the "promotion failed" email using a FAIL trigger

            Unassigned Unassigned
            kirill_evstigneev Kirill Evstigneev
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: