Jenkins configure role-based project Rights Management

Source: Internet
Author: User



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.