github-checks-plugin icon indicating copy to clipboard operation
github-checks-plugin copied to clipboard

skip github status checks through parameters in Jenkinsfile

Open xli1996 opened this issue 4 years ago • 2 comments

Hello,

Thanks for the work on this plugin!

I wonder if it is possible to use configs/parameters in Jenkinsfile to skip github status publish. The use case is that we want to skip certain jobs' status reports but not every jobs. Seems Skip publishing status checks can be only applied on org configs.

xli1996 avatar Oct 09 '21 21:10 xli1996

That seems a bit difficult because BuildStatusChecksPublisher.JobScheduledListener.onEnterWaiting looks like it can publish the QUEUED status before Jenkinsfile has even been parsed. It would be possible to set a job property on the first run though, and let it take effect on subsequent runs.

KalleOlaviNiemitalo avatar Oct 16 '21 11:10 KalleOlaviNiemitalo