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

After changing branch, webhook correctly arrives but diff still looks at old branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • github-plugin
    • None

      Upon changing branch configuration, jobs configured to trigger upon GitHub webhook are correctly receiving webhooks from the new branch, but do not seem to change which branch they examine for diff changes.  To replicate:

      1. Configure a job to trigger on webhook from branch A
         
      2. Have the job receive a webhook from branch A
      3. Change the configuration to point at branch B
      4. Upon receiving a webhook from branch B, the GitHub Hooks Log is showing the job examining branch A for changes instead of branch B.

      In our case, examining branch A showed no changes, and so the job did not run.

      The workaround is to run the job manually once.  Not a huge issue, but we regularly switch our branches around as we test features/etc. so it adds up over time, and we didn't have this issue just a few weeks ago.

            lanwen Kirill Merkushev
            csandersrga Courtney
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: