>
> @HEAD should not force the plugin to crash.

> Can you please ensure that there was no space in between the URL and @HEAD.
> Syntax: <URL>@HEAD
>
> If the error still exists then can you please paste the error logs here.
>

The value for "Repository URL" for Mercurial under the "Source Code
Management" settings I've tried is "https://jenkins@server/scm/tormc@HEAD";,
no spaces.

How is @HEAD supposed to be interpreted? I see from
here<http://stackoverflow.com/questions/11747152/force-jenkins-subversion-plugin-to-use-head-revision>or
here <https://issues.jenkins-ci.org/browse/JENKINS-1241> that this is
something related to SVN, but no mention of @HEAD in the mercurial man
pages<http://www.selenic.com/mercurial/hg.1.html>.
The closest I found is to use URL#tip, which makes the Jenkins server make
a fresh clone:

[workspace] $ hg showconfig paths.default

ERROR: Workspace reports paths.default as https://jenkins@server/scm/tormc

which looks different than https://jenkins@server/scm/tormc#tip

so falling back to fresh clone rather than incremental update

$ hg clone --rev default --noupdate https://jenkins@server/scm/tormc#tip
/home/www/jenkins/jobs/Tormc/workspace

The full error from the previous case, where @HEAD was in the URL is:

Started by remote host 192.168.122.2
Building in workspace /home/www/jenkins/jobs/Tormc/workspace
[workspace] $ hg showconfig paths.default
ERROR: Workspace reports paths.default as https://jenkins@server/scm/tormc
which looks different than https://jenkins@server/scm/tormc@HEAD
so falling back to fresh clone rather than incremental update
$ hg clone --rev default --noupdate
https://jenkins@server/scm/tormc@HEAD/home/www/jenkins/jobs/Tormc/workspace
abort: HTTP Error 404: Not Found
ERROR: Failed to clone https://jenkins@server/scm/tormc@HEAD
ERROR: Failed to clone https://jenkins@server/scm/tormc@HEAD
Recording test results
ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to
exception
/home/www/jenkins/jobs/Tormc/workspace does not exist.
 at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:460)
 at
hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:108)
at
hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:90)
 at hudson.FilePath.act(FilePath.java:852)
at hudson.FilePath.act(FilePath.java:825)
 at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87)
at
hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:122)
 at
hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:134)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
 at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
 at hudson.model.Build$BuildExecution.post2(Build.java:183)
at
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
 at hudson.model.Run.execute(Run.java:1541)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Finished: FAILURE

Reply via email to