Jenkins: Sharing Variables in MultiJob

I use Jenkins for testing / build, so I created a MultiJob project with this configuration:

  • Test
  • Task assembly
  • Set task

MultiJob starts from Master Jenkins, but other jobs start from other nodes. The build job is executed by a shell script that creates a BUILD_ID. Now I want the BUILD_ID to be passed as a parameter to the installation job. How can i do this? My only choice is to use a properties file?

Thank you so much

+4
source share
4 answers

, , Parameterized Trigger. - (key=value) Parameters from properties file downstream ( , B). . :

enter image description here

"B", $BUILD_ID. Don't trigger if any files are missing.

+3

, MultiJob, . , MultiJob. MultiJob,

  • " "
  • " ". , "Build", MultiJob. " ".
  • "...", → . , .
+3

" " "BUILD_ID", , , "Trigger Parametrized build on on other project" , BUILDID =% BuildID%

Jenkins : https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build

. .

+1

BUILD_ID .

:

  • ,
  • , ;
  • , . BUILD_ID;
  • , , . script,
+1
source

All Articles