Reputation: 23
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
Reputation: 371
Yes.
Replace the job that you created to MultiJob (install the multijob plugin) - its the same as freestyle with additional abilities.
Add Boolean parameter (let assume that the name is Mypara).
In the build section add Conditional step (multiple) Boolean condition Token ${ENV,var="Mypara"}
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