How do I jenkins permission on a per job basis?

You have to manage restrictions with the tools that Jenkins provides. If you have administrator status go to "Jenkins configuration" (picture 1) and then to "Manage and assign roles" (picture 2). Here you will see "Manage roles" and "Assign roles".

Access to jenkins configuration from dashboard Jenkins manage and assign roles enter image description here

Use "Manage roles" to create/update roles and assign permissions to determined projects and also to manage the restrictions of each job. Use "Manage and Assign roles" to assign roles to users or to other groups.

Role/permission matrix:

Permission matrix for Jenkins

Thus you can configure groups to administrate determined jobs, to execute other jobs or to simply have the ability to visit and see job details.


You can use matrix-based security to achieve this.


You need Project-based Matrix Authorization Strategy in Global Configuration, and on the Job Configuration, use Enable Project-based Security.

It's all explained here
Standard Security Explained

Tags:

Jenkins