jenkins setup role based

Configure Role Based User Access In Jenkins Server On Linux

Jenkins user permissions Linux on security purpose because if there’s no roles defined, any user can run build of other projects. you can install role based authorization Jenkins plugins & defines user security based on Jenkins roles and responsibilities. Jenkins allows you to Configure Role Based User authorization for security purpose.

Check Out : Step To Configure AD Authentication With Jenkins On Linux

Click on Manage Jenkins and install Role Base Authorization Strategy Plugins

Configure Role Based User

After installation of Role-Based plugins, You need to go “Configure Global Security

jenkins security realm

Select Autorization Method

user security in jenkins

Check Out : How To Solve Missing Jenkins Login Page

Click on Manage Jenkins -> Manage and Assign Roles

jenkins user permissions

Click on Manage rules,

jenkins user permissions ubuntu

here you need to create a global role and i created Employees and click on add.

After this phase, you need to permit Employees according to your needs.

Check Out : How To Configure Samba Server For File Sharing

Now Come to Project roles, you have to create a project which will match the pattern.

Note: Job created Name Should be the same in Project roles.

I have created apple project roles and click on add.

Now Permit Project roles and user will be able to do only what permission are assigned to this project roles.

Check Out : How To Install Monit Process Monitoring Tool On Linux 7

Apply and save.

Go back to Assign Roles,

jenkins matrix based security

Here you will add users in global roles and items roles.

role based security

Check Out : How To Delete File And Logs Older Than 30 Days In Linux

Now test user will be able to see the apple project and test 1 will be the cisco project.

jenkins user permissions

Now Create a job with apple and cisco project to check the configuration.

Click on New items and login with the user.

role based authorization jenkins

Check Out : How To Uninstall Skype From Ubuntu

In the same way, do this for the Cisco project.

jenkins user permissions

You’re done. jenkins user permissions jenkins user permissions linux jenkins user permissions linux

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

sixteen + sixteen =