Skip to content

[JENKINS-68675] Use of Global Libraries breaks commit URLs #682

@jenkins-infra-bot

Description

@jenkins-infra-bot

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.


Originally reported by medianick, imported from: Use of Global Libraries breaks commit URLs
  • status: Open
  • priority: Minor
  • component(s): forensics-api-plugin, git-forensics-plugin
  • label(s): help-wanted
  • resolution: Unresolved
  • votes: 0
  • watchers: 5
  • imported: 20260107-220949
Raw content of original issue

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions