I cannot use relative paths since the help file is included in the configuration page. Can somebody please give me a pointer what the correct jelly expression is? resURL or rootUrl? Where is this documented?
On Friday, August 24, 2012 12:33:17 PM UTC+2, Robert Sandell wrote: > > Use relative paths > > images/warning.gif > > > > * * > > *Robert Sandell* > > Software Tools Engineer - Tools and Integration > > Sony Mobile Communications > > > > *From:* [email protected] <javascript:> [mailto: > [email protected] <javascript:>] *On Behalf Of *Stefan Wolf > *Sent:* den 23 augusti 2012 22:04 > *To:* [email protected] <javascript:> > *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 >
