Hello all
One change I am trying is to embedd all css/js files to it can be used in an offline jenkins instance.
For this, I added the files into the webapp folder and then referenced them like:
<link rel="stylesheet" href="${resURL}/plugin/docker-swarm/css/clr-ui.min.css" />
<link rel="stylesheet" href="${resURL}/plugin/docker-swarm/css/clr-icons.min.css" />
<script src="${resURL}/plugin/docker-swarm/js/custom-elements.min.js"></script>
<script src="${resURL}/plugin/docker-swarm/js/clr-icons.min.js"></script>
<script src="${resURL}/plugin/docker-swarm/js/Chart.min.js"></script>
<script src="${resURL}/plugin/docker-swarm/js/chartjs-plugin-datalabels.js"></script>
The problem is that if a jenkins instance is in a subfolder (JENKINS_OPTS / prefix=/jenkins) it does not find the resources as they now just point to /plugin/docker-swarm/... So it seems that either resUrl is not resolved or it is just empty.
Can anyone please help me here?
Best Regards
Roman