-
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
publishChecks step: the conclusion should be none when status is not completed #72
Comments
Hi @XiongKezhi, If this fix is not super urgent, can I work on this? |
go ahead! thanks! |
@XiongKezhi, is this issue fixed, or am I checking at the wrong place? checks-api-plugin/src/main/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisher.java Lines 128 to 129 in 64dc0a6
checks-api-plugin/src/main/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisher.java Lines 152 to 153 in 64dc0a6
|
BuildStatusChecksPublisher is the wrong place. You need PublishChecksStep. |
Thanks, @KalleOlaviNiemitalo. To be clear, I shouldn't change the |
I don't really know what is the best way to implement this. Anyway, please test that the pipeline snippet generator behaves in a sensible way after your changes. |
yes, you should add a condition to check the status when setting the conclusion. |
Ok sure. Thanks a lot, both of you. |
@XiongKezhi, could you please let me know if you have any guide to follow on setting up the plugin for local testing? I referred to the Consumers Guide and Implementation Guide, but it's a bit unclear for me. It would be better if you can help me with this. |
@ThusithaDJ Sorry, those are not guides for users, they are for other plugin developers. So when you are trying to test this plugin locally, first you need to set up a Jenkins instance for remote debugging. If you are using a Jenkins war file, startup it with the java options like (for more, see here):
Then you can set up your remote debugger to attach to it. Finally, you need a Jenkins project to run the code of this plugin:
And since you are going to modify the |
personally I just change the dependency in the github checks repo to a SNAPSHOT dependency, build this project with or just using unit tests for some changes where I don't actually need GitHub |
Hi @XiongKezhi, I have pushed some changes, please check that and let me know your thoughts. |
fixed by #82 |
Currently, the
publishChecks
step has a defaultsuccess
value for the conclusion, however, it should reset the conclusion to benone
when the status isqueued
orin_progress
. Otherwise, users may have to explicitly set the conclusion to benone
since, like GitHub, it will automatically set the status to becompleted
whenconclusion
is provided.See the context: #70 (comment)
The text was updated successfully, but these errors were encountered: