Vojtech Juranek
|
40b23b8885
|
DBZ-5974 Use catchError instead of try/finally block
For scripted pipelines (on the contrary to declarative pipelines) the
build results has to be set manully if try/catch block is uses. As a
workaround `catchError` can be used as this step also sets the
`currectResult`.
See also
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#catcherror-catch-error-and-set-build-result-to-failure
|
2023-01-05 06:55:51 +01:00 |
|