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

Pipeline: Send notification "Back to normal" state

      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]
      }
      

          [JENKINS-36765] Pipeline: Send notification "Back to normal" state

          malcolm crum created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173499 ] New: JNJira + In-Review [ 185157 ]
          Tim Jacomb made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Tim Jacomb made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            kmadel Kurt Madel
            crummy malcolm crum
            Votes:
            7 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: