I have a Jenkins setup with master and slaves, and I'm using the Role Strategy Plugin to manage authorisations for my users. My goal is to allow only specific users to build on specific nodes.
I have a dev global role giving overall read permission and job read permission, I have a dev project role that gives all permissions on Jobs (in the dev folder), and a dev slave role that gives build permissions on agents (=slaves) with names following the pattern dev(.*). To summarise:
When I assign a user to the three roles, the user can build jobs on all nodes, like dev01 and prod01. This is a problem, as I don't want my dev users to build on production slaves. Removing the slave role from the user seems to have similar effects.
I then tried to remove the job build permission from the project role, but then my user can't build any job at all.
Any idea how to accomplish my goal using this plugin ? I know I can use another plugin like the Job Restrictions Plugin, but I want to keep the configuration in one place with role-based strategy, as it seems to support this.