Where is “Jenkins URL” configuration stored?

前端 未结 5 849
青春惊慌失措
青春惊慌失措 2021-02-12 03:58

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 i

相关标签:
5条回答
  • 2021-02-12 04:20

    The file config.xml in the Jenkins home folder.

    0 讨论(0)
  • 2021-02-12 04:22

    If you don't find the URL when grepping Jenkins home, it's because you didn't saved the configuration. If not set, Jenkins fallback to request URL, whithout saving it on disk.

    root@jenkins-dev:/var/lib/jenkins# grep jenkinsUrl *.xml
    jenkins.model.JenkinsLocationConfiguration.xml:  <jenkinsUrl>http://jenkins-dev.lxc/</jenkinsUrl>
    root@jenkins-dev:/var/lib/jenkins# 
    
    0 讨论(0)
  • 2021-02-12 04:26

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

    0 讨论(0)
  • 2021-02-12 04:36

    I did a grep for "http" in my Jenkins root directory led me to hudson.model.UpdateCenter.xml

    I'm using Jenkins version 1.462

    0 讨论(0)
  • 2021-02-12 04:37

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

    0 讨论(0)
提交回复
热议问题