This article describes how to configure the Jenkins so that it can support role-based project Rights Management.
because Jenkins The default rights management system does not support the configuration of a user group or role, so a third plug-in is required to support the configuration of the role, and this article uses Role Strategy Plugin , Introduction page: Https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin
1. Configure plugins
After installing the plugin, go to the System settings page
The configuration is as follows:
2. Configure permissions
on the System administration page, click Manage and Assign Roles go to the Role Management page:
2.1 Management Role (Manage Roles)
Select to create global roles, project roles, and to assign permissions to roles.
the difference between a project role and a global role is that the project role can only manage projects, without managing Jenkins configuration of permissions.
Here we add a global role Viewer. ordinary users come in only View the permissions are not managed Jenkins the Permissions
Next we add a project role TestProject . Now we have a project called test , which belongs to the Test project manager who can manipulate the project
2.2 assigning roles
There are three users in our system, and no permissions have been assigned
Jenkinsadmin : Can be managed Jenkins
Testpromanager : Not managed Jenkins , but can manage Test Project
Otherproject: : Not managed Jenkins , you can not manage Test Project
Next we look at the results
1. login using jenkinsadmin
2. login using testpromanager
3. login using otherproject
Jenkins configure role-based project Rights Management