Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
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"
])
}
}
```
Not sure what you mean in re: Blue Ocean - is it not visualizing right? Or is the failure block not executing? That wouldn't shock me - try changing from failure to aborted?