I'm setting up a Jenkins-Server for building Unity-Projects so the required build-jobs are basically allways the same except some parameters like the Unity-Version.
To make it easier to configure new build jobs, I created a job called "TEMPLATE_JOB" so for future jobs I just can select "Copy from Template" while creating a new job.
In a next step I've discovered the Job-Generator PlugIn which basically does the same thing but even a bit more elegant. It basically copies itself replacing required parameters by given values and ofcourse changing the new generated jobs name.
Now my problem is the following:
Both solutions named before have one great issue. Since they are templates which's configurations are copied, I don't want normal users to be able to make any changes to them, but still be able to create new Jobs using them.
So I'm trying to use the Project-based Matrix Authorization Strategy
to restrict normal users from configuring the template jobs.
But if I restrict users from beeing able to configure the templates / job generator, then also the permissions and restrictions are copied => users can create a Job but than not reconfigure their own created job anymore.
What I want is
- Only the administrator can configure the templates / job-generators.
- All normal users can configure the generated jobs.
Is there any security model in Jenkins which provides the functionality I'm trying to archive?