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

How do I create a custom rerun check in Pipeline

Open Thilaknath opened this issue 3 years ago • 1 comments

Describe your use-case which is not covered by existing documentation.

Hello Team,

I am currently using the githubNotify plugin which helps create a status check in Github for my PR's Screen Shot 2022-04-08 at 2 29 47 PM

I wan to add a re-run to the above check. The github-checks-plugin seem to offer a re-run functionality as stated here. https://plugins.jenkins.io/github-checks/#plugin-content-rerun-failed-build

Can you please advice on how to achieve this. The piece of code which enables the check during my pipeline run is as below. githubNotify context: 'Master job status', description: 'No jobs running', status: 'SUCCESS', gitApiUrl: 'https://github.com/api/v3'

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

Thilaknath avatar Apr 08 '22 18:04 Thilaknath

We don't support custom rerun, we only support the rerun action automatically added by GitHub after failure. I wonder if you just want a rerun, why want it as a custom action?

XiongKezhi avatar Apr 14 '22 01:04 XiongKezhi