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.
TL;DR
I want to get a list of stages names in the pipeline.