Jenkins: Sharing variables in MultiJob

前端 未结 4 1706
暗喜
暗喜 2021-01-18 02:00

I\'m using Jenkins for testing/build purposes, so I created a MultiJob project with this configuration:

  1. Test Job
  2. Build Job
  3. Install Job
  4. <
4条回答
  •  庸人自扰
    2021-01-18 02:16

    First you need add to the "install job" a string parameter called "BUILD_ID" and then once your build job is done you can "Trigger Parametrized build on on other project " and add the parameter of the next build being the BUILDID=%BuildID%

    For more info on paramterized job on Jenkins read the following link: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build

    you might need to install a plugin for that. Link above.

提交回复
热议问题