| Hello, I'm a Product Manager at CloudBees and we're currently working on a design for this request, and I would love to get your feedback on the suggested solution: We were thinking of expanding the functionality of "catchError" block as follows: +Current default behavio+r (will be maintained for backward compatibility) when an error is caught:
- Step result is failed (though execution of the pipeline continues)
- Stage result is success
- Build result is failed
Suggested changes: Add ability to set arguments to determine the desired results upon a caught error:
- Stage result : success/failure (default: success)
- Build result: success/failure (default: failure)
In addition, a very common use case is the ability to set a warning - mark the build and a stage in it as one that warrants attention without failing the build. To support that, we're considering adding a new block called "warnError", which will behaves as follows:
- If an error is caught:
- Step result is failed
- Stage result is set to unstable
- Build result is set to unstable
(we're also fixing the issue where if a build becomes unstable it's hard to pinpoint which stage caused the build to become unstable ) Thank you, Nofar Bluestein, Product Manager, CloudBees |