Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is “Jenkins URL” configuration stored?

Tags:

jenkins

puppet

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.

like image 651
nweiler Avatar asked Jul 30 '12 14:07

nweiler


People also ask

Where does Jenkins keep the configuration data?

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.

How do I change my Jenkins URL?

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.

What is Jenkins base URL?

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.


2 Answers

It stores it in a rather unlikely place: hudson.tasks.Mailer.xml in Jenkins home folder.

like image 104
malenkiy_scot Avatar answered Oct 02 '22 07:10

malenkiy_scot


I'm on Jenkins 2.68 and it's stored at jenkins.model.JenkinsLocationConfiguration.xml under the Jenkins home folder.

like image 32
wonton Avatar answered Oct 02 '22 06:10

wonton