We would like to reference a step inside a parallel task of a Jenkins workflow. But it seems that step IDs are created non deterministic for steps in multiple parallel tasks. For a input step it is possible to manually specify the step id. Is it either possible to specify a step id for a shell step or query the step id?
The purpose is that we would like to create a link to a shell script inside a parallel task.
Indeed step IDs are not in general predictable in advance. Do you want to link to its log, like this? I am not entirely clear about the use case.
The closest existing RFE would be JENKINS-28119.
Perhaps you want to use the input ID instead of step ID:
Then the input URL would exposed as:
(Note the capitalization on the input ID).