Jenkins role strategy plugin is not working

- Pranay on Mrz 03 '15
- viewed 3823 times

I am using Role strategy plugin to authorize the users/user groups in Jenkins. I have created roles and assigned roles to users/groups as per this documentation but it is not working. Below are the details.

  1. Job name: web-proj-deploy
  2. Pattern: web-.*
  3. Role: web-user

Web-user is a project role and should access only the jobs whose name starts with ‘web-‘ as per the above pattern. But all the jobs are visible when logged in with user id whose role is web-user. The filtration is not being applied based on the pattern. Everything I configured as per the Jenkins plugin documentation but it does not work. What could be the issue? Thanks in advance!


  •     •    
  • Apr 08 '15 13:49
Pranay Deegoju

Finally found the root cause for this and resolved the issue. After going through the jenkins plugin documentation again, I found that the role 'Anonymous' under 'Assign Roles->Project Roles' is not given any project role(all the roles are unchecked for Anonymous user) but in my job I gave some roles to Anonymous user. Because of this, the roles are overwritten and all the users by default can see all the jobs.


Your Comments






You might also like

1. Sitecore 8 best practices

2. System error 109 has occurred. The pipeline has been ended.

3. Error while launching Sitecore 8 for the first time

4. Two Sitecore versions 7.5 and 8 running on same machine share same SQL server and mongodb databases?

5. Error in sitecore mvc routing: An illegal route has been detected: '{controller}/{action}/{id}'.


SIGN UP AND GET LATEST UPDATES.

Recent Posts

×
 

Liked this article?

Subscribe with your email and get updates when ever a new article is posted.

By subscribing you agree to our privacy terms. We promise that we do not sell your data.