문제

I want a block some jobs for a user level for example I have 3 jobs:

Job1 (All the register user can execute this). Job2 (Only some user can execute this) Job3 (All the register user can execute this).

도움이 되었습니까?

해결책

Set the Global Security (http://<your_server>/configureSecurity/?) to the configuration that matches most jobs (enable Job Build) and then enable Project-based security for the other jobs (via the jon configuration) and set up as required by disabling Job Build.

Enter the user name in User/group to add: and then configure as required. In this case I've limited control to two users

enter image description here

다른 팁

You need to use Project-based Matrix Authorization Strategy to achieve this. Hudson/Jenkin >> Manage Hudson >> Configre Security >> Authorization, and select Project-based Matrix Authorization Strategy. Now in the configuration page of each job you will have an option Enable job-based security. You can give access permissions for the users here.

This works for me : Role Strategy Plugin

But you need understand it and its official documentation is poor, so go to :

https://stackoverflow.com/a/38516162/3957754

The below link provides the clear guideline to grant/restrict the access to Jenkins Jobs. http://www.kblearningacademy.com/configure-role-strategy-plugin-in-jenkins/ Its very useful & am able to do the same.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top