jenkinsci / jenkinsci/git-plugin

[JENKINS-40129] Extend GitChangeSet to get the repository name

Open
#3,001 4 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:trivial resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

By using a global shared library for Pipeline jobs, rawBuild.changeSets on the current build will contain the changes of the global shared library and the repository that is used for building. To better distinguish between theses to sources, it would be great to have a variable to obtain the repository.

The GitChangeSet class does not provide any possibility to get repository information about the commit.

    currentBuild.rawBuild.changeSets.collect { cs ->

cs.collect { entry ->
"* ${entry.author.fullName}: ${entry.msg}"
}.join("\n")
}.join("\n")

---
Originally reported by webventil, imported from: Extend GitChangeSet to get the repository name


  • status: Open
  • priority: Trivial
  • component(s): git-plugin
  • label(s): changelog
  • resolution: Unresolved
  • votes: 12
  • watchers: 15
  • imported: 2025-12-02

Raw content of original issue

By using a global shared library for Pipeline jobs, rawBuild.changeSets on the current build will contain the changes of the global shared library and the repository that is used for building. To better distinguish between theses to sources, it would be great to have a variable to obtain the repository.

The GitChangeSet class does not provide any possibility to get repository information about the commit.


    currentBuild.rawBuild.changeSets.collect { cs ->

cs.collect { entry ->
"* ${entry.author.fullName}: ${entry.msg}"
}.join("\n")
}.join("\n")

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.