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

Polling a mercurial repo fails when the only change to the branch since the last build is a merge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • mercurial-plugin
    • None

      Given this repo structure, where t2 was the last revision that was built by jenkins, when t3 is pushed to the central repo, polling fails and says that no changes have occurred.

      t3         - on branch 'trunk'. Should build, but doesn't
      | \
      |  d2      - on branch 'default'
      t2 |       - on branch 'trunk'. Was last built version.
      |  |
      |  d1      - on branch 'default'
      t1         - on branch 'trunk'.
      

      I think this is because after polling pulls the specified branch, it then only checks for changes on that branch excluding any merges, using "hg log --branch trunk --no-merges". This returns nothing in the above scenario, so no build occurs. If either the --branch option is removed it returns d2 & d1 changesets or if the --no-merges option is removed it returns the merge changeset, so I assume will perform a build.

      Performing the build manually with the Build Now button works correctly, and shows the correct changesets that were involved.

            kohsuke Kohsuke Kawaguchi
            dgodfrey Daniel Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: