1 jenkins job jenkins trigger jobs by parameters

Is there any Jenkins plugin that helps with the following:

  • if the directory <XXX* present in the SVN folder <GoRoCo>
  • is the job <GoRoCo>_<XXX> Jenkins called?

Example:
In the "TEST" task "TEST" I specify parameters such as the directory name (A, B, C) and the folder name (G1R2), then the "TEST" task should run the tasks "G1R2_A" , "G1R2_B" and "G1R2_C"

+4
source share
4 answers

Use a Parameterized Trigger Plugin . When specifying tasks to call in the plugin, you can use tokens, as in JOB_${PARAM1}_${PARAM2} .

+3
source

Take a look at this plugin, I think it does exactly what you are looking for:

https://wiki.jenkins-ci.org/display/JENKINS/Files+Found+Trigger

+2
source

Use the thread assembly plugin

With this plugin, you can run as many jobs with or without a parameter.

+2
source

Use some scripts to create a properties file with the required parameters for each of the modified projects and place them in the workspace directory.

Later, you can use the parameterized plugin to run the project downstream.

enter image description here

Note. You may also have to remove these properties after starting downstream projects.

0
source

Source: https://habr.com/ru/post/1415066/


All Articles