CI with Jenkins: how to force building happen on slaves instead of master? CI with Jenkins: how to force building happen on slaves instead of master? jenkins jenkins

CI with Jenkins: how to force building happen on slaves instead of master?


You can set where a job will be run using the "Restrict where this project can be run" option in your job.This setting can be used together with tags you have added to your slaves.

For example two slaves having the tag "Linux-buildserver" and using that tag will split the job up on those two slaves.Setting the IP-address as a tag in the job will make sure only that buildserver / slave is used.


One of my first steps in setting up a new Jenkins master is to do what you mention in your question, set "executors" to zero in the master server config.

This prevents anything from ever building on master.


While configuring the node, there is option,"leave this machine for tied jobs only" .if "leave this machine for tied jobs only" option is selected Then the slaves will be used by the jobs which are restricted to run on it.