How do I set up credentials for each project in Jenkins?

I have 10 projects in my Jenkins, each for 10 different clients. So I need to create credentials for all my projects so that each client can only access their own project.

Is there any plugin out there to fulfill my requirements.

Please, help!!!

+3


source to share


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







All Articles