Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68675

Use of Global Libraries breaks commit URLs

XMLWordPrintable

      We use a Global Library for common pipeline commands, and it's referenced at the top of our Jenkinsfiles (e.g., @Library('MyLibrary')). Upon adding mineRepository(), the first thing I noticed was an additional SCM Forensics link on the left menu for the build – one corresponded to the Global Library's repository, and one to the actual repository being built. I was able to remove the extra SCM Forensics entry by adding an scm parameter to filter the SCM in use. However, even having done so, when clicking a particular commit from the Details page (either the "file churn graph" or the list of commits at the bottom), I am sent to a URL for the Global Library's repository but with the actual repository's commit SHA (leading to a 404, not surprisingly).

      I think it would be ideal if Global Libraries were entirely ignored by this plugin, but barring that, at the very least it should generate the correct SCM commit URLs for the repository specified by the scm parameter.

            Unassigned Unassigned
            medianick Nick Jones
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: