Jenkins Workflow: How to get or set step id

后端 未结 2 1000
执念已碎
执念已碎 2021-01-22 12:27

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. Fo

2条回答
  •  情深已故
    2021-01-22 12:40

    Perhaps you want to use the input ID instead of step ID:

    node {
      input id: 'input1', message: 'Continue?'
    }
    

    Then the input URL would exposed as:

    http://[jenkins_base_URL]/job/[job_name]/[build_id]/input/Input1/proceedEmpty
    

    (Note the capitalization on the input ID).

提交回复
热议问题