jenkinsci / jenkinsci/git-plugin
[JENKINS-66885] Multibranch empty changes reported by scm but not by git plugin
- 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
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
![]()
- environment:
Jenkins 2.303.2, Git plugin 4.9.0, other plugins and jobs as described in https://github.com/MarkEWaite/docker-lfs/commit/32bd3d3345735f18e872fc5c92af84ed9f0ab530
3 attachments
- [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-include-files.png](https://issues.jenkins.io/secure/attachment/56550/when-commits-include-files.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.