jenkinsci / jenkinsci/git-plugin

[JENKINS-47689] Repository names missing in currentBuild.changeSets nor display in Change log page when using multiple repositories

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

Description

When checkouting multiple repositories in a pipeline with :

dir('repo1') {

git 'repo1'
}
dir('repo2') {
git 'repo2'
}

the change page will display the commit messages of each repo, but without indicating at which repo belong the changes:

Changes:

1. Commit one

Changes:
1. Commit two

It will be more informative to have something like:

Changes in repo1:

1. Commit one

Changes in repo2:
1. Commit two

Additionally in groovy in the pipeline when accessing to the currentBuild.changeSets object, how to know the repository each change is related too ?

---
Originally reported by jguigui, imported from: Repository names missing in currentBuild.changeSets nor display in Change log page when using multiple repositories


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • label(s): changelist, changelog, changeset, git, multiple-repo, multiple-scms, pipeline
  • resolution: Unresolved
  • votes: 16
  • watchers: 14
  • imported: 2025-12-02

Raw content of original issue

When checkouting multiple repositories in a pipeline with :



dir('repo1') {

git 'repo1'
}
dir('repo2') {
git 'repo2'
}

the change page will display the commit messages of each repo, but without indicating at which repo belong the changes:



Changes:

1. Commit one

Changes:
1. Commit two


It will be more informative to have something like:



Changes in repo1:

1. Commit one

Changes in repo2:
1. Commit two


Additionally in groovy in the pipeline when accessing to the currentBuild.changeSets object, how to know the repository each change is related too ?

  • environment: Jenkins 2.86

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.