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

No changes detected by git

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • blueocean-git-pipeline:1.23.2
      blueocean-github-pipeline:1.23.2
      git:4.4.1
      git-client:3.4.2
      git-server:1.9
      github:1.31.0
      github-api:1.116
      github-branch-source:2.9.0

      git version 1.8.3.1
      Jenkins version 2.255

      We started to randomly run into the following issue. Bitbucket webhook sends an update to Jenkins multibranch pipeline, but pipeline doesn't schedule a build because it detects no changes, even though the commit that triggered UPDATE is in bitbucket.

      [Thu Sep 10 13:21:01 EDT 2020] Received jenkins.plugins.git.GitSCMSource$ListenerImpl$1 UPDATED event from x.x.x.x ⇒ http://host:port/git/notifyCommit with timestamp Thu Sep 10 13:21:01 EDT 2020
      ...

      git ls-remote -h ssh://user@bitbucket/a/repo.git # timeout=10
      ...
      Checking branches...
      Checking branch release/1.247.0
      ‘Jenkinsfile’ found
      Met criteria
      No changes detected: release/1.247.0 (still at cc0f29d85ec79db0ef7dc798c8a4e9e2fe0ee410)

      There is another commit that exists after [ cc0f29d85ec79db0ef7dc798c8a4e9e2fe0ee410 ], and i can see it with git ls-remote. If I do "Scan Multibranch Pipeline Now" it will pick up the change.
      Sounds like a timing issue.

            Unassigned Unassigned
            adpoint72 Alex Dobkin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: