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.
Click on Manage Jenkins and install Role Base Authorization Strategy Plugins
After installation of Role-Based plugins, You need to go “Configure Global Security”
Select Autorization Method
Check Out : How To Solve Missing Jenkins Login Page
Click on Manage Jenkins -> Manage and Assign Roles
Click on Manage rules,
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.
Apply and save.
Go back to Assign Roles,
Here you will add users in global roles and items roles.
Now test user will be able to see the apple project and test 1 will be the cisco project.
Now Create a job with apple and cisco project to check the configuration.
Click on New items and login with the user.
Check Out : How To Uninstall Skype From Ubuntu
In the same way, do this for the Cisco project.
You’re done. jenkins user permissions jenkins user permissions linux jenkins user permissions linux