Seems there is a scm.getEffectiveBrowser() method which returns something 
useful (I tried scm.getBrowser() but this method returns null).

A repository browser operates on a ChangeSet. How can I create one from a 
simple git commit hash? 

> Am 16.09.2020 um 22:38 schrieb James Nord <[email protected]>:
> 
> 
> 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 [email protected] wrote:
> I think it’s this: 
> https://javadoc.jenkins.io/plugin/scm-api/jenkins/scm/api/metadata/ObjectMetadataAction.html
>  
> <https://javadoc.jenkins.io/plugin/scm-api/jenkins/scm/api/metadata/ObjectMetadataAction.html>
> 
> On Tue, 15 Sep 2020 at 21:56, Ullrich Hafner <[email protected] 
> <applewebdata://78BC8424-A5DE-4BBE-945D-15F0764D2511>> 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 [email protected] 
> <applewebdata://78BC8424-A5DE-4BBE-945D-15F0764D2511>.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/130F9688-8F61-4FC8-A1C1-7457677F0C35%40gmail.com
>  
> <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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/8d5a12ab-11f6-4d8d-a066-c8605672219cn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/8d5a12ab-11f6-4d8d-a066-c8605672219cn%40googlegroups.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/259CD123-60F5-4966-A800-8BB35B55BC53%40gmail.com.

Reply via email to