Step 1:
Configure Jenkins:
- Open Command Prompt & follow the following steps to configure Jenkins
- Go to the particular directory where Jenkins.war is installed & enter the following command java –jar Jenkins.war
- You will get Jenkins is fully up and running in Command Prompt if Jenkins configured correctly.
- Open browser go to the given URL – http://localhost:8080/
- Normally Jenkins uses 8080 port to run.
- Jenkins Dashboard will be displayed.
Step 2:
Configure Global Security Option:
- Click on Manage Jenkins Button present in Jenkins dashboard & open Manage Jenkins Page.
- Select Configure Global Security option present in Manage Jenkins Page.
- Select Enable Security Checkbox Present in Configure Global Security Page.
- Click on Jenkins own user database Radio button from Security Realm section & then click on Matrix based security radio button present in Authorization section.
Set Username/Group name:
- Enter User/Group Name and click on Add Button.
- For example I have entered Test User in Matrix based security section.
- Select Permissions to the newly added user & then click on SAVE Button.
Just get started:
- Jenkins Login Page should be displayed.
- Click on Create an Account Link to create new user.
- Enter Username as Test in Signup form & enter all valid details and then click on Signup Button.
- Test User is successfully Logged in to Jenkins account.
- Click on Logout Link present at top of the Jenkins dashboard.
- Jenkins Login Page should be displayed.
- Whenever you are trying to open Jenkins (http://localhost:8080/) it will ask you for username & password to login.
Success over it or get this:
- If both Username & Password matches means Jenkins will display dashboard. Otherwise it throws an error message.
Global Security Option in Jenkins is Configured Successfully!
You can now protect your Jenkins data using Global Security option. Stay with peace of mind and make your projects highly secured. Doubtless, wish to get your comments and let’s discuss more in the comments session. Drop me few words which I would be glad to reply.
January 6, 2016 at 12:58 pm
Thanks for posting this informative article.
January 6, 2016 at 1:12 pm
Great update, thanks for writing it.
January 7, 2016 at 4:30 pm
Good you showed us how to secure the projects, simple steps to follow. Do share your findings frequently.
January 7, 2016 at 4:46 pm
Useful posting to secure projects flexible and easy way. Such an awesome post.
March 30, 2016 at 11:32 am
Good one Karthik. Keep on posting such things and keep yourself technically updated.