-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins ver. 1.592
when I start to use a new Jenkins, some environment variables like JENKINS_URL、JOB_URL、BUILD_URL can't be used.But when I click the save-button in system settings ,those environment variables works.So i doubt is it right?
- duplicates
-
JENKINS-31661 Jenkins.rootUrl too often unset or incorrect
-
- Resolved
-
… and it's based on the request URL that is only available in the context of a request. If Jenkins is running on a different port, or you access it with a different host name, those would be reflected here.
You opening the config page: In an HTTP request context.
A build running: Not in an HTTP request context.
So your argument based on this form value doesn't make sense.
FWIW just setting 'localhost:8080' as the default would be wrong for pretty much all deployments to production, and not allow the automatism of filling the Configure System form field with a real default.