I'm trying to set up a non-default URL as part of a puppet script that installs Jenkins. I know how to edit the value via the web UI but I can't seem to find where the value is actually stored. I've looked through the jenkins_home folder and apache and have yet to find it.
Note: The default location for the Jenkins configuration file on Ubuntu and Debian is /etc/default/jenkins. If you are working with RedHat, CentOS, or Fedora, the Jenkins configuration file is located at /etc/sysconfig/jenkins.
Fixing a root urlGo to Jenkins > Manage Jenkins > Configure System, and locate the section titled "Jenkins Location". You should see the warning here as well. Replace "localhost" with a valid hostname. Click Save.
xml, but at http://myhost/jenkins/configure, there's an option called "Jenkins URL" that you can use to set that. Follow this answer to receive notifications.
It stores it in a rather unlikely place: hudson.tasks.Mailer.xml
in Jenkins home folder.
I'm on Jenkins 2.68 and it's stored at jenkins.model.JenkinsLocationConfiguration.xml
under the Jenkins home folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With