How to setup Jenkins Slave permission

Jirong Hu picture Jirong Hu · Nov 20, 2015 · Viewed 9k times · Source

https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin. I have this plugin install to control the access to job folders, all works well. Now I don't know how to configure the Slave Roles, can't find any document on that. The requirement should be who or which project can be run on that slave?

Answer

Bruno Lavit picture Bruno Lavit · Nov 23, 2015

If the user demo_user can build on all the jenkins-centos* nodes, you can create the following role:

enter image description here

And next, affect this role to your user:

enter image description here

About the projects, if the demo_user can build all the Commons* projects:

enter image description here

enter image description here

I hope it helps :)