I'm running jenkins 1.455. I have a master and a few slaves. I use labels on the builds and have the slaves set to "leave this machine for tied jobs only", everything works fine. However, I would like to do the inverse and set the slaves to "utilize this slave as much as possible and have only a couple of builds on the master. Can I use "master" as a label in the "Restrict where this project can be run" field?
Tell Jenkins to run a specific job only on the master node by configuring that job to restrict where this project can be run
and setting the label to master
.
Open the configuration panel for your job, under the General
section:
Set the label to !master
to restrict the job to run only on slave nodes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With