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

can not catch Abort action of Input Step in Post Failure section in Blue Ocean

XMLWordPrintable

      Version:

      • Jenkins ver. 2.46.1
      • Pipeline: Input Step 2.7
      • Pipeline: 2.5
      • Blue Ocean 1.1.2

      Actually this worked before in Blue Ocean, but recently it did not work anymore, I do not know which version introduce this issue. Below is my pipeline code, It is ok when you approve this request, but it does not work when you abort this:

       

      ```

      steps {
        hipchatSend([
          color: "YELLOW",
          message: """hello""",
          notify: true,
          room: "alert",
          textFormat: true
        ])

        timeout(time: 5, unit: "DAYS") {
          input message: "Do you want to approve this?", ok: "OK",    submitter:"bob"
          }
        }

      post {
          success {
          hipchatSend([
            color: "GREEN",
            message: "@all Approve",
            notify: true,
            room: "alert"
          ])
      }

      failure {
          hipchatSend([
            color: "GREEN",
            message: "@all Deny",
            notify: true,
            room: "alert"
          ])
         }
      }

      ```

            Unassigned Unassigned
            hanks hanks justin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: