rvshetty
rvshetty

Reputation: 85

1 jenkins job trigger multiple jenkins jobs based on parameters

Is there any Jenkins plugin that helps with the following:

Example:
In job "TEST" , I specify parameters like directory name (A, B , C) and folder name (G1R2) then job "TEST" should trigger the jobs "G1R2_A" , "G1R2_B" and "G1R2_C"

Upvotes: 4

Views: 11436

Answers (4)

Abdul Kader
Abdul Kader

Reputation: 5842

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

Later you can use parameterised plugin to trigger downstream project like this.

enter image description here

Note: you might also have to delete those properties after triggering the down stream projects.

Upvotes: 0

mahinlma
mahinlma

Reputation: 1258

Use Build Flow plugin

With the help this plugin you can run as many jobs with or without parameter.

Upvotes: 2

malenkiy_scot
malenkiy_scot

Reputation: 16615

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

Upvotes: 4

eyossi
eyossi

Reputation: 4340

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

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

Upvotes: 2

Related Questions