-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Primary error message is not shown in error header, instead says error in 'error' step
#124
Comments
error in 'error' step
The information about failing steps is formatted in FlowExecutionAnalyzer.java, so this issue belongs to jenkinsci/checks-api-plugin. |
Thank you, @timja. UnstableStep adds a WarningAction. ErrorStep just throws an AbortException. I guess that is then translated to ErrorAction somewhere in workflow-cps-plugin. |
Should the formatting just special-case |
isStageNode already hardcodes the "stage" name, so hardcoding "error" and "unstable" as well would be consistent with that. I imagine changes:
|
Feature Request
When I report an error like this in one of my steps:
This plugin does not report that error cleanly in the check. I expect it to show the message I reported more prominently but instead it shows information about the error step itself.
For example right in the Pull Request instead of showing that error message it simply says
error in 'error' step
:Other github status checkers will show the actual error message in this part of the UI instead.
Additionaly when going to the error details it has the same message prominently in a header as well as some redundant information about an Error in the error step.
(red for bad, green for good)

I feel like in the case of reporting an error via the
error()
step / function, the information about that step should be omitted and the error message itself should be what is reported.The text was updated successfully, but these errors were encountered: