Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disabling Jenkins auth when auth method fails
# Backup Jenkins Config
cp $JENKINS_HOME/config.xml $JENKINS_HOME/config-bk.xml
# Set useSecurity to false to enable login when auth temporarily
# This opens Jenkins to all with access to the URL
grep "useSecurity" $JENKINS_HOME/config.xml
sed -i "s#<useSecurity>true#<useSecurity>false#g" $JENKINS_HOME/config.xml
grep "useSecurity" $JENKINS_HOME/config.xml
# Restart Jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment