Hi all,

I tried as suggested. I don't know why, but it seems like the rootURL in my 
help.jelly file is not expanded. Any ideas? I pushed my changes to 
github: https://github.com/jenkinsci/groovy-postbuild-plugin/tree/rootUrl. 
If anybody could have a look at it and tell me why it does not get expanded 
correctly.

Thank you,
Stefan

On Friday, August 24, 2012 3:29:15 PM UTC+2, Stefan Wolf wrote:
>
> 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] [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
>>
>

Reply via email to