It looks like this may let you fix your problem:
One may accidentally set up security realm / authorization in such a way that you may no longer able to reconfigure Jenkins.
When this happens, you can fix this by the following steps:
- Stop Jenkins (the easiest way to do this is to kill the servlet container.)
- Go to
$JENKINS_HOME
in the file system and findconfig.xml
file.- Open this file in the editor.
- Look for the
<useSecurity>true</useSecurity>
element in this file.- Replace
true
withfalse
- Remove the elements
authorizationStrategy
andsecurityRealm
- Start Jenkins
When Jenkins comes back, it's in the unsecured mode where everyone gets full access to the system.
If this is still not working, trying renaming or deleting
config.xml
.
Once you get in, uninstall or reconfigure the GitHub OAuth plugin using the Jenkins UI, re-enable security, and try again!