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

Mercurial polling fails when a revset is specified

XMLWordPrintable

      This seems to be related to JENKINS-29879 and JENKINS-30120, and possibly https://github.com/jenkinsci/mercurial-plugin/pull/73/files.

      I have a build task which is intended to run and build the latest tagged version on a branch. We have a matching CI task which builds the branch whenever it changes, but this builds tagged releases for us.

      The Revision Type is Revset.
      The Revision is "ancestors(MyBranchName) and tag()"

      The build task itself works fine if I manually start it, but Mercurial polling returns an error:

      [Release (latest tagged)] $ hg --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" log --rev "ancestors(MyBranchName) and tag()" --template {node}
      ERROR: Expected to get an id but got 'c424510d8e14ffd1a538570dd7c3cfab09e9a691807c00b2372e6e351811ac42efd4e2aabbd91adc46e30bd6c7eba1cd450ca75a5e04e6dfc523faf5128202c352a847711f775ea1b4aaf97740088df8a646eb1d136d7e4b86f5ae38bc9c305dd4246943fe7ad215b9d65f99f347ec16b2cbdeb22c9b4ab29e05748a605cad41b6ca14feabf24068edb343e4b75b4a6bc9faf9204574f4240aef4a515402e398da81f8484c1378984c69cc9358bbfd229314dbd471ba4cb218774d1c76e93ffac61566f921f748fbcb9752977e2347e0817a610f9af8dbf4aba864a698fa58780f9f4a7c7c7538ce30bd720249ec145b24c08d1a285d80727de0a5c6b26d83382db8686c3dc921c80ab0ddeb4cf5d656ebe31061e8531dfbb7054047fb14aa7afddfb93756ce27f8e6013d1872e6577b7d1eaae91eef7935cb6aaabdcb71a852eda18a7045d3504215fbfa461c9d5bb74504808e52dac2d7b16593b81a36ab4cb2c6a23dd7237eede358b423bd813a7ac96e9a68ab9deaf33bf821444b090e37dfd93827ef11edd3317686b3d25ae6d6e1f76cea9b6638ed54e2de04417754def9c03551980d9cae36e008523c8656111b4eac06e70e8a27de845183758d4e59e621071813a712a34970327d844bf5341daeb766a98bf02a58435ff37b1932bff991abea2c49df0471fc71b2b2ccee60d2cfe91d210af022e643b25b1e4db88a3fcdcdacc02e04f1c50ba81ef975e45a34b55a8270a679bbef4d146200d317a77ef6e9207160c25de1e0687ba51b77f85c72cc52a0c7892fadec07fa15cb6ca2a5504b335cc515403f0d7639ff378db96ef3b0617683aa1b' instead.
      

      It appears that the build task has been fixed (see the linked pull request; I don't know when it was merged), but the code which performs polling has not.

            Unassigned Unassigned
            ppemberton Philip Pemberton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: