-
Bug
-
Resolution: Unresolved
-
Major
-
None
In Jenkins version 2.169 the condition blocks supported in "post" do not match those in the documentation. Some of the supported ones are not documented.
According to the documentation] "post can support any of of the following post-condition blocks: always, changed, fixed, regression, aborted, failure, success, unstable, unsuccessful, and cleanup. "
However
{{post {
success {
script
}
unsuccessful {
script { // stuff }
}
cleanup {
script
}
}
}}
results in this error:
WorkflowScript: 128: Invalid condition "unsuccessful" - valid conditions are [always, changed, fixed, regression, aborted, success, unstable, failure, notBuilt, cleanup] @ line 128, column 5.
unsuccessful {