Where is “Jenkins URL” configuration stored?

前端 未结 5 836
青春惊慌失措
青春惊慌失措 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: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:  http://jenkins-dev.lxc/
    root@jenkins-dev:/var/lib/jenkins# 
    

提交回复
热议问题