create account

Recover Lost Admin Password in Jenkins by codingdefined

View this thread on: hive.blogpeakd.comecency.com
· @codingdefined · (edited)
$23.05
Recover Lost Admin Password in Jenkins
Jenkins is an open-source automation server which is used to automate tasks like building the project, deploying. I am using Jenkins for building .Net projects and then deploying it on to the Dev, Stage and Prod Server. 
Creating a Job in Jenkins means creating Pipeline (Jenkins Pipeline) which is a combination of plugins used to create continuous flow of actions. 

For Example : I will create a Jenkins Pipeline which will Build the .Net Project from Github and then deploy it to the Windows Server. For that I need to add a GitHub Plugin which will check if any new commits have been added or not, MSBuild plugin for building the .Net Project and the last is msdeploy for deploying the build to the server.

This is the small introduction of Jenkins and Jenkins Pipeline. So I am the admin of the jenkins server and we have Jenkins Security, so that I can only run the pipelines. But recently after updating my Windows from 7 to 10, I lost all my saved password. I know, I should have backed up.

Now I cannot login to Jenkins and they also do not have an option to Reset the password. So, the Only thing pending for me to update the Config File. I will show you the Step by Step process how I have recovered the password or better way to say How I managed to Login again to Jenkins Server.

Step 1 : You need to get an Admin Privilege for the Windows Server where you have hosted your Jenkins and login to the Server and go inside the Jenkins folder.
 
Step 2 : Then you need to Stop the Jenkins Service Using Command `jenkins.exe stop`

Step 3 : Open config.xml file and update useSecurity as `false`.

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514980455/wh3zf8tcfqoyf7i8jbtr.png)

Step 4 : Start Jenkins Service Using Command `jenkins.exe start`.

Step 5 : Now from the website again create a new User having the Admin privilege.

These are the above steps to recover the account if you have lost the admin password, but I do recommend not to lose the password and take a back up of it.


<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@codingdefined/recover-lost-admin-password-in-jenkins">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorcodingdefined
permlinkrecover-lost-admin-password-in-jenkins
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":1103607,"name":"jenkins","full_name":"jenkinsci/jenkins","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/jenkins","description":"Jenkins automation server","fork":true,"url":"https://api.github.com/repos/jenkinsci/jenkins","forks_url":"https://api.github.com/repos/jenkinsci/jenkins/forks","keys_url":"https://api.github.com/repos/jenkinsci/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/jenkins/teams","hooks_url":"https://api.github.com/repos/jenkinsci/jenkins/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/jenkins/events","assignees_url":"https://api.github.com/repos/jenkinsci/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/jenkins/tags","blobs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/jenkins/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/jenkins/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/jenkins/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/jenkins/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/jenkins/subscription","commits_url":"https://api.github.com/repos/jenkinsci/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/jenkins/merges","archive_url":"https://api.github.com/repos/jenkinsci/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/jenkins/downloads","issues_url":"https://api.github.com/repos/jenkinsci/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/jenkins/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/jenkins/deployments","created_at":"2010-11-22T21:21:23Z","updated_at":"2018-01-03T10:03:22Z","pushed_at":"2018-01-02T21:24:37Z","git_url":"git://github.com/jenkinsci/jenkins.git","ssh_url":"git@github.com:jenkinsci/jenkins.git","clone_url":"https://github.com/jenkinsci/jenkins.git","svn_url":"https://github.com/jenkinsci/jenkins","homepage":"https://jenkins.io/","size":105280,"stargazers_count":9556,"watchers_count":9556,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3766,"mirror_url":null,"archived":false,"open_issues_count":143,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3766,"open_issues":143,"watchers":9556,"default_branch":"master","score":83.407074},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","opensource","jenkins","steemdevs"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514980455/wh3zf8tcfqoyf7i8jbtr.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514980455/wh3zf8tcfqoyf7i8jbtr.png"],"moderator":{"account":"manishmike10","reviewed":true,"pending":false,"flagged":false}}"
created2018-01-03 11:57:36
last_update2018-01-04 07:15:57
depth0
children2
last_payout2018-01-10 11:57:36
cashout_time1969-12-31 23:59:59
total_payout_value16.752 HBD
curator_payout_value6.299 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,201
author_reputation534,272,792,694,295
root_title"Recover Lost Admin Password in Jenkins"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,763,472
net_rshares2,474,630,373,508
author_curate_reward""
vote details (34)
@manishmike10 ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authormanishmike10
permlinkre-codingdefined-recover-lost-admin-password-in-jenkins-20180104t071601222z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-04 07:16:03
last_update2018-01-04 07:16:03
depth1
children0
last_payout2018-01-11 07:16:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation20,399,732,899,016
root_title"Recover Lost Admin Password in Jenkins"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,968,079
net_rshares0
@utopian-io ·
### Hey @codingdefined I am @utopian-io. I have just upvoted you!
#### Achievements
- Seems like you contribute quite often. AMAZING!
#### Suggestions
- Contribute more often to get higher and higher rewards. I wish to see you often!
- Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
#### Get Noticed!
- Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-codingdefined-recover-lost-admin-password-in-jenkins-20180105t192909466z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-05 19:29:09
last_update2018-01-05 19:29:09
depth1
children0
last_payout2018-01-12 19:29:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,433
author_reputation152,955,367,999,756
root_title"Recover Lost Admin Password in Jenkins"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,353,599
net_rshares0