TESTEROPS

A pragmatic approach to QA and OPS

Minor Configuration Before Getting Started

Now that we have installed and started using Jenkins, it’s time we start using it to plan and run our jobs and other work that want to achieve through Jenkins.

But there are a few things that we would want to complete before we start using Jenkins. The most important of this is the ability to set user security for the users.

User security is of paramount importance and as such Jenkins provides us with the flexibility to provide security permissions to every specific user.

As of now Jenkins is in an insecure mode on the system and everyone can access and modify it with ease. To add a user level security, we would need some extra steps.

  • On the left hand menu, you’ll see the “Manage Jenkins” link. This would allow you to change various configurations on your Jenkins. Go ahead and click it.
  • Next click on “Configure Global Security

Screenshot from 2015-06-26 10:27:26

  • Now you need to enable security by clicking “Enable Security” check box.

Screenshot from 2015-06-26 10:28:05

  • Now set Jenkins to use it’s own database. Un-check the check box that allows user to sign ups.

Screenshot from 2015-06-26 10:28:59

  • Now got to next section to set the type of security settings. Here you need to select “Matrix-based security”.
  • You’ll see an anonymous user already created. Check what permissions are allowed for this anonymous user. This user should only have the read access.Screenshot from 2015-06-26 10:29:07
  • Now click the Save button at the bottom of the page and refresh the browser. Once you reload the jenkins url, it will show the login page. You need to create a new user, giving him required credentials. This created user will be the admin of your Jenkins instance.

Screenshot from 2015-06-26 10:29:15

Now go and try running Jenkins from your browser. It will prompt you to create a new user, which will be the admin of the Jenkins instance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: