jenkinsci / jenkinsci/git-plugin

[JENKINS-42689] Changes detected from notifyCommit but not displayed in "Changes"

Open
#3,058 1 comment 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 changes are committed to a git repository and the notifyCommit url is called, the changes do not always display in the user interface "changes" page. The changes are detected and are recorded in the build data and the SHA1 hash can be found from the Build Data links in the sidebar of the specific run. The "Changes" page for the job does not always show the changes (no copy of the commit message, no link to the diffs, etc.)

Steps to duplicate the problem:



  1. Clone, build, and run the docker instance

      $ git lfs clone https://github.com/MarkEWaite/docker-lfs JENKINS-42689
    
    $ cd JENKINS-42689
    $ git lfs fetch origin origin/lts-with-plugins
    $ git checkout -b lts-with-plugins origin/lts-with-plugins
    $ docker build -t jenkins:JENKINS-42689 .
    $ docker run -i --rm --publish 8080:8080 jenkins:JENKINS-42689

  2. Connect a web browser to that docker instance (http://localhost:8080)

  3. Open the "Bugs - Pipeline Checks" folder

  4. Open the "jenkins-bugs" multi-branch pipeline job

  5. Click the "Scan Multibranch Pipeline Now" link to start branch indexing

  6. Wait for one of the jobs to complete

  7. Verify that no changes are shown

  8. Commit a change to the branch represented by that job

  9. Click the "Scan Multibranch Pipeline Now" link to start branch indexing

  10. Confirm the commit was detected in that job

  11. Open the "Changes" page, confirm the committed change did not appear

That may not precisely duplicate the problem, but it is the best description I can offer of what I observed.

The picture shows 2 builds which have changes listed, even though all builds in that list were the result of one or more commits, and were started by the notifyCommit hook being called with that repository URL.

---
Originally reported by markewaite, imported from: Changes detected from notifyCommit but not displayed in "Changes"


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

Raw content of original issue

When changes are committed to a git repository and the notifyCommit url is called, the changes do not always display in the user interface "changes" page. The changes are detected and are recorded in the build data and the SHA1 hash can be found from the Build Data links in the sidebar of the specific run. The "Changes" page for the job does not always show the changes (no copy of the commit message, no link to the diffs, etc.)

Steps to duplicate the problem:



  1. Clone, build, and run the docker instance

      $ git lfs clone https://github.com/MarkEWaite/docker-lfs JENKINS-42689
    
    $ cd JENKINS-42689
    $ git lfs fetch origin origin/lts-with-plugins
    $ git checkout -b lts-with-plugins origin/lts-with-plugins
    $ docker build -t jenkins:JENKINS-42689 .
    $ docker run -i --rm --publish 8080:8080 jenkins:JENKINS-42689


  2. Connect a web browser to that docker instance (http://localhost:8080)

  3. Open the "Bugs - Pipeline Checks" folder

  4. Open the "jenkins-bugs" multi-branch pipeline job

  5. Click the "Scan Multibranch Pipeline Now" link to start branch indexing

  6. Wait for one of the jobs to complete

  7. Verify that no changes are shown

  8. Commit a change to the branch represented by that job

  9. Click the "Scan Multibranch Pipeline Now" link to start branch indexing

  10. Confirm the commit was detected in that job

  11. Open the "Changes" page, confirm the committed change did not appear

That may not precisely duplicate the problem, but it is the best description I can offer of what I observed.

The picture shows 2 builds which have changes listed, even though all builds in that list were the result of one or more commits, and were started by the notifyCommit hook being called with that repository URL.

  • environment: Jenkins 2.32.3, git plugin 3.1.0, git-client-plugin 2.3.0

1 attachment

- [JENKINS-42689-missing-changes.png](https://issues.jenkins.io/secure/attachment/36400/JENKINS-42689-missing-changes.png)
> ![JENKINS-42689-missing-changes.png](https://issues.jenkins.io/secure/attachment/36400/JENKINS-42689-missing-changes.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.