Use relative paths images/warning.gif
Robert Sandell Software Tools Engineer - Tools and Integration Sony Mobile Communications From: [email protected] [mailto:[email protected]] On Behalf Of Stefan Wolf Sent: den 23 augusti 2012 22:04 To: [email protected] Subject: Use static content of a plugin and non-standard context path Hi, I have the following problem: The groovy post-build plugin has a help page which is shown on its configure page: https://github.com/jenkinsci/groovy-postbuild-plugin/blob/master/src/main/webapp/projectconfig.html This static html page references some other images which are in the webapp directory of the plugin via urls like /plugin/groovy-postbuild/images/warning.gif. This all works pretty fine as long as jenkins runs with context path /. As soon as jenkins runs with another context path, e.g. jenkins/, then the images are not found any more from the help page, since the correct path would be /jenkins/plugin/groovy-postbuild/images/warning.gif. How can I solve this problem? Best regards, Stefan
