Jenkins: Use personal data for the project.

I have a project on my Jenkins server. There is a GitHub repository in this project, and I configured it so that it automatically creates new commits. For this to work, I need to enter credentials for a github account that has full repo access.

The problem is that if I want him to add his registration information to the list of credentials, I would have to give him access to all the credentials on the server (I do not want this).

I tried to use credentials under "{username}"> "Credentials" , but they did not appear in the project settings (even with 100% access to everything on the server).

Is there a way for a user to store their credentials and use them for a project without giving him full access to all credentials on the server?

+5
source share
2 answers

Add the user credentials in the Global Security section and then enable the Matrix Authorization Strategy project strategy for each project, as shown below:

enter image description here

0
source

I found the answer in this mailing list entry:

In short: you need

  • install and activate the Project Authorization Plugin ,
  • enable the "run as a specific user" strategy in the global security settings,
  • enable this for the project in question.

This allows you to use credentials for this particular user.

Enabling ssh-agent is the last step to make this work convenient.

0
source

Source: https://habr.com/ru/post/1210595/


All Articles