I want to set GitHub Checks for each stage on the pipeline to “Pending” when a pipeline starts.
I use the checks-api plugin (GitHub - jenkinsci/github-checks-plugin: Jenkins Plugin for GitHub Checks API)
Now I repeat the
publishChecks (Checks API plugin) for each stage on the 1st stage.
But I would like to have a loop to go over all stage names and create the checks, so in the future if stages are added, it will automatically do the work.
I want to get a list of stages names in the pipeline.