What is wrong?
BlueOcean button points to host with different port from the one specified in
```
/etc/default/jenkins
...
HTTP_PORT=9001
...
```
See attached image.
How should it be?
BlueOcean button should point to the same host:port, which Jenkins is using.
Reproduce
Install jenkins
Install BlueOcean plugin.
Restart jenkins.
Due to default parameters, everything works fine.
Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000
Restart jenkins.
Everything still works fine.
Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001
Restart jenkins.
BlueOcean button does not change its location
Cause
Blue ocean uses the Jenkins URL setting extensively for guessing the URL to the server. Many other things, such as email links, also do this. It should be reasonable to expect that Jenkins URL could be set by the environment.
[JENKINS-40314] Jenkins URL cannot be set via environment
Summary | Original: [BlueOcean] Port mismatch between Jenkins and BlueOcean beta | New: Jenkins URL cannot be set via environment |
Component/s | New: core [ 15593 ] | |
Component/s | Original: blueocean-plugin [ 21481 ] |
Description |
Original:
h3. What is wrong? BlueOcean button points to host with different port from the one specified in ``` /etc/default/jenkins ... HTTP_PORT=9001 ... ``` See attached image. h3. How should it be? BlueOcean button should point to the same host:port, which Jenkins is using. h3. Reproduce Install jenkins Install BlueOcean plugin. Restart jenkins. Due to default parameters, everything works fine. Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000 Restart jenkins. Everything still works fine. Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001 Restart jenkins. BlueOcean button does not change its location |
New:
h3. What is wrong? BlueOcean button points to host with different port from the one specified in ``` /etc/default/jenkins ... HTTP_PORT=9001 ... ``` See attached image. h3. How should it be? BlueOcean button should point to the same host:port, which Jenkins is using. h3. Reproduce Install jenkins Install BlueOcean plugin. Restart jenkins. Due to default parameters, everything works fine. Open /var/default/jenkins and change HTTP_PORT=8080 to HTTP_PORT=9000 Restart jenkins. Everything still works fine. Open /var/default/jenkins and change HTTP_PORT=9000 to HTTP_PORT=9001 Restart jenkins. BlueOcean button does not change its location h3. Cause Blue ocean uses the Jenkins URL setting extensively for guessing the URL to the server. Many other things, such as email links, also do this. It should be reasonable to expect that Jenkins URL could be set by the environment. |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
gram7gram when you changed the port in /var/default/jenkins did it change the URL in Manage Jenkins ->
Jenkins Location -> Jenkins URL? I believe this is where we get the full URL.