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

Pipeline: Send notification "Back to normal" state

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I understand how to send slack notifications in a Pipeline script on success, or on failure. This is useful for build jobs.

      For automated tests, a notification on each job is not so useful. Instead, I'd rather be notified when a job fails, or when a job succeeds and the previous job failed. Pre-Pipeline, this was referred to as "Back to normal" I think.

      I'd like a way to know that a previous build failed. Something like this:

      [... test completed successfully]
      if (previousBuild.success() == false) {
         [send slack message: "Test back to normal]
      }
      

        Attachments

          Activity

          Hide
          crummy malcolm crum added a comment -

          Bad internet caused a double post. Closing as dupe.

          Show
          crummy malcolm crum added a comment - Bad internet caused a double post. Closing as dupe.
          Hide
          rbjorklin Robin Björklin added a comment -

          The open issue can be found here: https://issues.jenkins-ci.org/browse/JENKINS-36765

          Show
          rbjorklin Robin Björklin added a comment - The open issue can be found here: https://issues.jenkins-ci.org/browse/JENKINS-36765

            People

            Assignee:
            kmadel Kurt Madel
            Reporter:
            crummy malcolm crum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: