jenkinsci/github-checks-plugin

skip github status checks through parameters in Jenkinsfile

Opened this issue · 1 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.

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.