Damir
Damir

Reputation: 23

Jenkins parameter to trigger job

Is there any type of Jenkins plugin that allows for a checkbox parameter that when selected can trigger a downstream job?

Example: 1. I am on Jenkins and have a Freestyle job. 2. This job contains multiple checkboxes that have names associated to them. 3. Based on whether these are checked it will trigger a build to a corresponding Jenkins job.

Upvotes: 2

Views: 1472

Answers (1)

Oron Golan
Oron Golan

Reputation: 371

Yes.

  1. Replace the job that you created to MultiJob (install the multijob plugin) - its the same as freestyle with additional abilities.

  2. enter image description here

  3. Add Boolean parameter (let assume that the name is Mypara).

  4. In the build section add Conditional step (multiple) Boolean condition Token ${ENV,var="Mypara"}

  5. Add step to condition: Trigger call builds on other project. (You can define if you want to wait that the downstream will block the current job run in parallel).

Good luck

Upvotes: 1

Related Questions