How do I set up credentials for each project in Jenkins?
1 answer
Select "Project-Based Matrix Authorization Strategy" under Global Security
Define common users without access to projects at this level.
Then, for each project, select "Enable project-based security" and here you can grant individual permissions to add users, such as the ability to view and run the job
Edit:
In Configure global security in Matrix authorization based on the project :
- Make sure Anonymous and Authenticated have no other permissions.
- Confirm:
- Job search (this will redirect unclaimed users to the login page).
- Provide Authentication:
- General information (without this permission nothing will work).
- Read view , optional (without it, they won't see custom views, just "all views").
- Save configuration
In Job Configuration , under Enable project-based security :
- Give customer1:
- Reading the assignment (this will allow you to view this particular job and nothing else).
- Grant additional permissions as needed (build, workspace, promotion, etc.).
- Save configuration
+6
source to share