Jenkins - How to make a job trigger 3 jobs on 3 different node simultaneously -


i relatively new jenkins , not aware of many plugins available. need little in solving 1 of scenario.

i have job (master) triggers 3 different jobs( a, b , c). need trigger these 3 jobs on 3 different nodes , these node names can not hard code need pass master job.

so, master job reads these values parameters user , triggers a, b , c jobs

any on appreciated.

here 1 solution using jenkins join plugin , jenkins nodelabel plugin.

on master job, add 1 node parameter per child job:

enter image description here

enter image description here

next, add new join post-build action trigger child jobs using parameterized trigger plugin (add "current build parameters" option):

enter image description here

it trigger job test.bruno.a , test.bruno.b , pass 2 node parameters these jobs (node_a , node_b).

on child jobs, have add node parameter same name (node_a , node_b):

enter image description here

(same job b...)

when trigger master job, select target nodes 2 jobs:

enter image description here

your child jobs use relevant nodes:

enter image description here

enter image description here

i hope helps :)


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -