Seems that I am getting from one problem to the next :-( RunWithSCM.html#getChangeSets returns a list of changes in the current build. The links I want to create are commits that are not necessarily in the current build. The participating build may even be deleted because the commit is too old. RepositoryBrowser#getChangeSetLink(E changeSet) requires a ChangeSet which seems to have no simple public constructor.
Maybe my use cases needs some explanation: the warnings plugin shows blames with commit IDs where and when a warning has been introduced. And the Git forensics plugin shows statistics of all commits for a file. Currently I show the links in plain text. What I simply want for these files: Input: a commit hash like: d70ffafe55c68dfebd7fee405ec451f1493c37bd Output: https://github.com/jenkinsci/warnings-ng-plugin/commit/d70ffafe55c68dfebd7fee405ec451f1493c37bd <https://github.com/jenkinsci/warnings-ng-plugin/commit/d70ffafe55c68dfebd7fee405ec451f1493c37bd> > Am 23.09.2020 um 18:31 schrieb Jesse Glick <[email protected]>: > > On Tue, Sep 22, 2020 at 2:19 PM Ullrich Hafner <[email protected]> > wrote: >> There is no API to obtain change sets from the builds > > https://javadoc.jenkins.io/jenkins/scm/RunWithSCM.html#getChangeSets-- > > -- > 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/CANfRfr0iDFZLn2oErfFUR%2BUBK0p02vNrKuJ%3DcFU9bdzh-BPvaA%40mail.gmail.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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/EF858736-1C25-4802-B72D-404712AA61A3%40gmail.com.
