Resource root URL not shown on a Jenkins docker container run
See original GitHub issue-
[ x] Jenkins version: Jenkins ver. 2.222.3
-
[x ] Plugin version: configuration-as-code 1.40
-
[x ] OS Ubuntu 16.04.6 LTS
Description
I am running a jenkins container with configuration as a code plugin in my linux machine. It is based from a docker image
FROM jenkins/jenkins:lts
I configured Resource root URL under Serve resource files from another domain under Jenkins (http://localhost:8080/configure)
I defined Resource root URL on the casc yml file like this under
unclassified:
resourceRoot:
url: "http://127.0.0.1:8080/"
Once the I run the container, the link url doesn’t show in the GUI. My workaround is to reload manually the casc configuration yml at http://localhost:8080/configuration-as-code/ which works fine. This is not a good solution during automation.
How do we solve this issue that once the container runs, the root url should expectedly be shown?
It seems strange because when building the image, no issues are found and I am quite sure I followed the casc rule definition.
Thank you for your help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:26 (18 by maintainers)
Top GitHub Comments
Tested with https://github.com/jetersen/jenkins4casc And it definitely works!
I have a few prs that I would like to land