To reset the Jenkins admin password, simply disable the security in the config.xml file.

  • If running on Linux, edit the following file:
    vi /var/lib/jenkins/config.xml file
  • Search for the term <useSecurity>true</useSecurity> and change the word True to False
  • Restart the Jenkins Server
    Service Jenkins Restart
BY Best Interview Question ON 09 Feb 2020