Jenkins to trigger another build/project dynamically

1.7k Views Asked by At

Is there a way in Jenkins to trigger another build/project dynamically based on a parameter value in parent project?

The reason for this is that I have 100's of projects and I don't want to use pipeline/conditional post build plugins to link all jobs.

I know of a way using REST API but trying to find is there a way to trigger a single project from those 100?

1

There are 1 best solutions below

2
On BEST ANSWER

Easy with Pipeline Plugin. Just define your parameter (say MY_DOWNSTREAM_JOB) and use it inside the groovy script definition:

build MY_DOWNSTREAM_JOB