Thanks for the pointer! The most important method is private. Without getUrl 
one can open only the previous and next build, but not an arbitrary build (e.g. 
the selected item in the build trend chart). 

Any objections on changing it to public? Then I will create a PR for it. In the 
meantime I will need to copy the code into my plugin. 
   

> Am 04.08.2021 um 19:21 schrieb Daniel Beck <[email protected]>:
> 
> 
> 
> On Wed, Aug 4, 2021 at 7:13 PM Ullrich Hafner <[email protected] 
> <mailto:[email protected]>> wrote:
> Of course I can parse the absolute URL on my own, but it would be simpler if 
> I can reuse some functionality in core if available (based on relative paths).
> 
> https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly#L33-L39
>  
> <https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly#L33-L39>
>  seems to be it and reasonably reusable?
> 
> Implementation at 
> https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/java/hudson/Functions.java#L381-L411
>  
> <https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/java/hudson/Functions.java#L381-L411>
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7Pt%2BgE185npgdu-U-n9%2BfV0Nr1PqBEm12jzNRneT9eaAf2Q%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7Pt%2BgE185npgdu-U-n9%2BfV0Nr1PqBEm12jzNRneT9eaAf2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/68A0B64F-4443-42B2-AD7F-43DA9B8AE022%40gmail.com.

Reply via email to