Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
416 views
in Technique[技术] by (71.8m points)

automated tests - How to setup credentials for every project in Jenkins?

I have some 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 access only their project .

Is there any plugin to achieve my requirement .??

Please Help !!!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Select "Project-based Matrix Authorization Strategy" under Global Security

Define general users, without access to projects at this level.

Then on per-project select "Enable project-based security", and here you can give individual users addition permissions, such as ability to view and execute the job

Edit:

In Configure Global Security, under Project-based Matrix Authorization:

  • Make sure Anonymous and Authenticated don't have any other permissions.
  • Give Anonymous:
    • Job Discover (this will redirect non-logged in users to login page).
  • Give Authenticated:
    • Overall Read (without this permission, nothing else will work).
    • View Read, optional (without this, they won't see custom views, just the 'all view').
  • Save configuration

In Job Configuration, under Enable project-based security:

  • Give client1:
    • Job Read (this will allow to view this particular job, and nothing else).
    • Give additional permissions as required (build, workspace, promote, etc).
  • Save configuration

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...