DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Jenkins User Management using Role-based Strategy


Build-in authorization method of Jenkins (described in note "Jenkins user account configurations") have to deal with user rights one by one.

The following role-based method can create some roles and assgin some users to a role.

  1. Install Role Strategy Plugin;

  2. Start Jenkins Server;

  3. Jenkins -> Manage Jenkins -> Global Security -> enable security;

  4. Select "Jenkins's own user database" as the security realm;

  5. Check "Allow user to sign up";

  6. Select "Authorizaiton -> Role-based Strategy";

  7. Manage Jenkins -> Manage and Assign Roles -> Manage Roles: create a role "admin" with all rights, "proj_leader", check Overall->Read and all of Jobs, Run, View and SCM;

  8. Manage Jenkins -> Manage and Assign Roles -> Assign Roles: create user "admin" and assign role "admin" to it, create user "chad" and assign role "proj_leader" to it;

Note:

  1. Ensure Overall->Read & Job->Discover is checked for user "Anonymous", or a 404 error will raised;

  2. When user rights definition is changed, no need to restart Jenkins service to take effect;

  3. Chinese charactor in user name is allowed and verified;



Published

May 21, 2013

Last Updated

May 21, 2013

Category

Tech

Tags

  • authorization 3
  • jenkins 26
  • security 2

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor