API to render links with RepositoryBrowser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

API to render links with RepositoryBrowser

Ulli Hafner
SCM plugins like the Git plugin show links to the changes in the hosted repositories (e.g. to GitHub changes).
Is there a generic API available to obtain those links so I can embed them in my plugin as well?
E.g., in the warnings plugin I’m showing the Git SHA of the commit that introduced a warning (currently as plain text).
It would be helpful if one could navigate to the GitHb source directly from that SHA.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/130F9688-8F61-4FC8-A1C1-7457677F0C35%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: API to render links with RepositoryBrowser

Tim Jacomb

On Tue, 15 Sep 2020 at 21:56, Ullrich Hafner <[hidden email]> wrote:
SCM plugins like the Git plugin show links to the changes in the hosted repositories (e.g. to GitHub changes).

Is there a generic API available to obtain those links so I can embed them in my plugin as well?

E.g., in the warnings plugin I’m showing the Git SHA of the commit that introduced a warning (currently as plain text).

It would be helpful if one could navigate to the GitHb source directly from that SHA.





--

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 [hidden email].

To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/130F9688-8F61-4FC8-A1C1-7457677F0C35%40gmail.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3Bie76LvEqtAe8CZXhCpyDN6k0Kp4AtODpZh%2BH9fzJRkgxQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: API to render links with RepositoryBrowser

James Nord-2

there is also the  link for the URL in the changeling which is controlled by the RepositoryBrowser implementation.
https://javadoc.jenkins.io/hudson/scm/RepositoryBrowser.html. 

On Wednesday, 16 September 2020 at 06:28:45 UTC+1 [hidden email] wrote:

On Tue, 15 Sep 2020 at 21:56, Ullrich Hafner <[hidden email]> wrote:
SCM plugins like the Git plugin show links to the changes in the hosted repositories (e.g. to GitHub changes).

Is there a generic API available to obtain those links so I can embed them in my plugin as well?

E.g., in the warnings plugin I’m showing the Git SHA of the commit that introduced a warning (currently as plain text).

It would be helpful if one could navigate to the GitHb source directly from that SHA.





--

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 [hidden email].

To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/130F9688-8F61-4FC8-A1C1-7457677F0C35%40gmail.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8d5a12ab-11f6-4d8d-a066-c8605672219cn%40googlegroups.com.