Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The realization method of configuring user role privilege in jenkins

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Jenkins to configure user role permissions requires the installation of the plug-in Role Strategy Plugin

1. Install the Role Strategy Plugin plug-in

Download address: https://updates.jenkins-ci.org/download/plugins/role-strategy/

Open jenkins system Management-> manage plugins-- > Advanced Click upload, and select the downloaded plug-in to install.

After installation, restart jenkins

two。 After installing the plug-in, go to system Settings Management-> Configure Global Security. Configure as follows and save.

3. Configure User/Group permissions

Open system Management-- > Manage and Assign Roles

3-1. Administrative role (Manage Roles)

Select this item to create global roles, project roles, and assign permissions to roles

Add test group, and give Over all Read permission, Job Build permission, and View Read permission

Project roles configures the Job seen

For example, matches that start with auto need to be written as auto.* instead of auto*,.

Save after configuration

3-2. Add user rights (Assign Role)

You need to add user system Management-> user Management-> add user first.

4. Create an autotest task, and the user test (only with build permission) logs in and finds that he can only see the autotest task, realizing different views and different permissions for different users.

Summary

The above is the realization method of configuring user role rights in jenkins introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply to you in time. Thank you very much for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report