In Mercurial Source Code Management, in the field "Branch", I have specified a build parameter $hgBranch.
The default value for this parametrized build is "default" so as to hit the default branch.
This works well when doing manual or time-triggered builds.
But the Poll SCM build trigger does not seem to be expanding this parameter at all, resulting in the polling to not work at all.
Here is the output of the Mercurial polling log:
Started on May 13, 2011 3:00:42 PM
[workspace] $ hg incoming --style /var/lib/jenkins/jobs/ds/workspace/tmp7235984072799037438style --no-merges --rev $hgBranch --newest-first
comparing with http://192.168.15.239/ds
abort: unknown revision '$hgBranch'!
Done. Took 1 sec