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

Details

    Description

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

      ```

      Attachments

        Activity

          hanks hanks justin created issue -
          hanks hanks justin made changes -
          Field Original Value New Value
          Description Version:
           * Jenkins ver. 2.46.1
           * Pipeline: Input Step 2.7
           * Pipeline: 2.5
           * Blue Ocean 1.1.2

          Actually this worked before, but recently it did work anymore, I do not know which version introduce this issue. Below is my pipeline code:

           

          ```

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

          ```
          Version:
           * Jenkins ver. 2.46.1
           * Pipeline: Input Step 2.7
           * Pipeline: 2.5
           * Blue Ocean 1.1.2

          Actually this worked before, but recently it did not work anymore, I do not know which version introduce this issue. Below is my pipeline code:

           

          ```

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

          ```
          hanks hanks justin made changes -
          Description Version:
           * Jenkins ver. 2.46.1
           * Pipeline: Input Step 2.7
           * Pipeline: 2.5
           * Blue Ocean 1.1.2

          Actually this worked before, but recently it did not work anymore, I do not know which version introduce this issue. Below is my pipeline code:

           

          ```

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

          ```
          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:

           

          ```

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

          ```
          hanks hanks justin made changes -
          Description 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:

           

          ```

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

          ```
          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"
               ])
              }
           }

          ```
          hanks hanks justin made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: