Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

1 jenkins job trigger multiple jenkins jobs based on parameters

Is there any Jenkins plugin that helps with the following:

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

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"

like image 692
rvshetty Avatar asked Feb 20 '23 07:02

rvshetty


2 Answers

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

like image 142
malenkiy_scot Avatar answered Apr 26 '23 18:04

malenkiy_scot


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

like image 45
eyossi Avatar answered Apr 26 '23 17:04

eyossi