-
Notifications
You must be signed in to change notification settings - Fork 28
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
A build result of UNSTABLE should not necessarily result in a failure #46
Comments
We marked the UNSTABLE as a failure because some users found that NEUTRAL may shadow the test failures: #11. In Jenkins, plugins usually treat UNSTABLE as a failure, for example, the JUnit plugin will report UNSTABLE if one of the tests fails, and the Warnings-NG plugin uses UNSTABLE or FAILURE to conclude a build if it fails the quality gate. It makes sense to make it configurable, you can implement it although it's a little complicated since it involves changes both on this API and the GitHub implementation:
So, for this status, maybe define a |
I follow your logic, if you think its fine to make it configurable I will try to follow up with a PR. It seems like this should be able to default to the current behavior and would be backwards compatible and would be a pretty reasonable thing to have configurable. |
Not sure if that can help for your usecase, but we sometime use the With that, the stage will show in yellow in the UI while the pipeline will still be successful.
|
Solved by #78 and jenkinsci/github-checks-plugin#124 |
@XiongKezhi does it still work? I've checked the |
See https://docs.github.com/en/rest/checks/runs#create-a-check-run: conclusion |
This line here:
checks-api-plugin/src/main/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisher.java
Line 146 in fa7f8da
I wish it would return state NEUTRAL or success, or perhaps be configurable.
I have a step which is currently producing errors which I want to know about but cannot block the build for. For example linter errors. We introduced a linter and it generates warnings which we want to fix over time and then eventually flip to a hard FAILURE but for now I want it to show as UNSTABLE.
I would create a PR if I had some guidance how best to implement such a change.
The text was updated successfully, but these errors were encountered: