jenkinsci / jenkinsci/git-plugin

[JENKINS-66885] Multibranch empty changes reported by scm but not by git plugin

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

Description

When running a multibranch pipeline job with a repository that commits a series of random messages with no changes in the files of the commits, the changes report shows only the commits that change file contents. Commits that do not change file contents are not displayed as changes by the git plugin though they are reported as changes by scm.

Refer to the JENKINS-66885 multibranch pipeline job in my jenkins-bugs repository for the experiments that were used to check this behavior.

Changes report non-empty commits

Changes report in the UI of the multibranch job looks like this when commits are not empty:

Changes report empty commits

Changes report in the UI of the multibranch job looks like this when commits are empty:

Individual job page with empty commits

When the changes are not reported, still the "SCM" section shows that there were changes.

The summary page for the individual build shows the inconsistency very clearly. It reports one change yet in the "SCM" section

---
Originally reported by markewaite, imported from: Multibranch empty changes reported by scm but not by git plugin


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

When running a multibranch pipeline job with a repository that commits a series of random messages with no changes in the files of the commits, the changes report shows only the commits that change file contents. Commits that do not change file contents are not displayed as changes by the git plugin though they are reported as changes by scm.

Refer to the JENKINS-66885 multibranch pipeline job in my jenkins-bugs repository for the experiments that were used to check this behavior.

Changes report non-empty commits

Changes report in the UI of the multibranch job looks like this when commits are not empty:

Changes report empty commits

Changes report in the UI of the multibranch job looks like this when commits are empty:

Individual job page with empty commits

When the changes are not reported, still the "SCM" section shows that there were changes.

The summary page for the individual build shows the inconsistency very clearly. It reports one change yet in the "SCM" section


3 attachments

- [scm-counts-correctly.png](https://issues.jenkins.io/secure/attachment/56551/scm-counts-correctly.png)
> ![scm-counts-correctly.png](https://issues.jenkins.io/secure/attachment/56551/scm-counts-correctly.png)
- [when-commits-are-empty.png](https://issues.jenkins.io/secure/attachment/56549/when-commits-are-empty.png)
> ![when-commits-are-empty.png](https://issues.jenkins.io/secure/attachment/56549/when-commits-are-empty.png)
- [when-commits-include-files.png](https://issues.jenkins.io/secure/attachment/56550/when-commits-include-files.png)
> ![when-commits-include-files.png](https://issues.jenkins.io/secure/attachment/56550/when-commits-include-files.png)

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.