3

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?

SiHa
  • 7,830
  • 13
  • 34
  • 43
enthuguy
  • 405
  • 2
  • 8
  • 20

1 Answers1

3

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

build MY_DOWNSTREAM_JOB
amuniz
  • 3,292
  • 2
  • 20
  • 22