Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Jenkins url not set #138
Comments
|
Jenkins can't know it's external IP, it relies on browser to detect it. No way for this to be fixed |
ndeloof
closed this
Sep 7, 2015
elopio
commented
Sep 8, 2015
|
I guess I can get a known public ip from openstack, and assign it to the machine during the deploy. |
|
This would then be specific to your deployment. For such case, include a custom init groovy script that will setup jenkins rootUrl according to environment. |
aldaris
referenced this issue
in jenkinsci/hipchat-plugin
Oct 5, 2016
Closed
$URL variable not working in template #84
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
elopio commentedAug 21, 2015
I have a problem with the jenkins url. When I deploy the container, it is not set:
ubuntu@snappy-jenkins:
/jenkins$ grep -r 10.55.32.40/jenkins$ubuntu@snappy-jenkins:
If I try to use $BUILD_URL in a job, it is not expanded.
Then I log in and go to http://10.55.32.40:8080/configure
The value of jenkins url is set to http://10.55.32.40:8080/
Next I save it and:
ubuntu@snappy-jenkins:
/jenkins$ grep -r 10.55.32.40/jenkins$jenkins.model.JenkinsLocationConfiguration.xml: http://10.55.32.40:8080/
ubuntu@snappy-jenkins:
Now if I use $BUILD_URL, it works.
So the value seems to be set only when I manually go to the config and save it.
I suppose I can create jenkins.model.JenkinsLocationConfiguration.xml on my docker file, but the IP is auto assigned to me by openstack, so I don't know how to tell the docker file to put the IP in there.