Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Locked out of Jenkins [closed]

I enabled jenkins security thinking it would prompt me to create an account. I tried deleting and editing my config.xml file in c:/program files/jenkins but i'm not sure how to restart jenkins without having access.

Any help would be appreciated.

I'm running Jenkins on a windows server, recently updated to the latest version.

like image 458
sstynes Avatar asked May 01 '13 18:05

sstynes


People also ask

How do I fix Jenkins login error?

Add users on the "Manage users" and then go back to "Manage security" then disable "Allow users to sign up". Also, you can now use Matrix based authentication without having to worry about getting locked out of Jenkins.


1 Answers

If you don't have a lot of other configuration that you'd like to save, you can just delete %JENKINS_HOME%/config.xml and restart Jenkins to disable security.

Otherwise, edit config.xml and set the values inside the <useSecurity> tags to false, then restart Jenkins.

like image 74
gareth_bowles Avatar answered Sep 21 '22 18:09

gareth_bowles