Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42689

Changes detected from notifyCommit but not displayed in "Changes"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins 2.32.3, git plugin 3.1.0, git-client-plugin 2.3.0

      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.

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

          Have the same issue

          Viacheslav Dubrovskyi added a comment - Have the same issue

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: