question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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? image

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:closed
  • Created 3 years ago
  • Comments:26 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
jetersencommented, May 19, 2020

Tested with https://github.com/jetersen/jenkins4casc And it definitely works!

1reaction
jetersencommented, May 20, 2020

I have a few prs that I would like to land

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the Jenkins root URL from code/script console fails
I a trying to figure out how to set the jenkins root url: enter image description here. from code. I have tried -...
Read more >
Resource Root URL validation error - 404 instance-identity ...
I put a custom logo override into userContent and it is working which leads me to believe the resource root url setting is...
Read more >
How To Automate Jenkins Setup with Docker ... - DigitalOcean
You can set the Jenkins URL on the web interface by navigating to server_ip :8080/configure and entering the value in the Jenkins URL...
Read more >
Serving resources from Jenkins - CloudBees Documentation
The Resource Root URL option enables Jenkins to serve user-generated static resources like workspace files or archived artifacts without the need for CSP ......
Read more >
Jenkins CASC and Jenkins Community helm chart issues
I have a very small GKE cluster up and running right now with ... I do not set the "Resource Root URL" and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found