How to pass a build number within the MultiJob plugin?

橙三吉。 提交于 2019-12-05 01:22:57
jack_kerouac

The multijob plugin sets the following environment variables per job (code):

  • <JOBNAME>_BUILD_NUMBER
  • <JOBNAME>_BUILD_RESULT

Where JOBNAME is created by the name of the job with all non characters and numbers replaced with _. Thus you can pass the build numbers as parameters to Job C:

There's a workaround using EnvInject and a groovy script: https://issues.jenkins-ci.org/browse/JENKINS-20241

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!