VcsException on "hg clone --pull" not expanding parameters used in the repository URL

Hello-
In troubleshooting hg paths, I opened the teamcity-vcl.log and noticed a string of regular errors where TC cannot perform a "clone --pull"  (see below for warning and debug with call stack).
There is an unexpanded parameter showing up in the repository URL (%system.build.repo%) that is used in most of my VCS roots, and the parameter is defined in all of my templates and configurations.

Any suggestions on how to resolve this, and what might not be happening because of it?  I can build OK, and it lists changes in the UI.  These errors just keep appearing at the polling interval.  Perhaps the one item not working are build triggers based on VCS changes, but I haven't played with it much.

Thanks.
--Jim

---------------- ---------------- ----------------
From VCS log with debugging turned on....

---------------- ---------------- ----------------
[2012-09-06 11:58:56,247]   WARN [, parent id=17}] -      jetbrains.buildServer.VCS - Error while loading current state for root 'mercurial: http://codemonkey.myfqdn.com/kiln/Code/Common/Spatial/Spatial%system.build.repo% {instance id=192, parent id=17}', id=192: '"c:\program files\tortoisehg\hg.exe" clone --pull -U --uncompressed http://BuildMachine:******@codemonkey.myfqdn.com/kiln/Code/Common/Spatial/Spatial%system.build.repo% Spatial%system.build.repo%' command failed.
stderr: abort: HTTP Error 400: Bad Request


[2012-09-06 11:58:56,247]  DEBUG [, parent id=17}] -      jetbrains.buildServer.VCS - '"c:\program files\tortoisehg\hg.exe" clone --pull -U --uncompressed http://BuildMachine:******@codemonkey.myfqdn.com/kiln/Code/Common/Spatial/Spatial%system.build.repo% Spatial%system.build.repo%' command failed.
stderr: abort: HTTP Error 400: Bad Request


jetbrains.buildServer.vcs.VcsException: '"c:\program files\tortoisehg\hg.exe" clone --pull -U --uncompressed http://BuildMachine:******@codemonkey.myfqdn.com/kiln/Code/Common/Spatial/Spatial%system.build.repo% Spatial%system.build.repo%' command failed.
stderr: abort: HTTP Error 400: Bad Request


at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.throwVcsException(CommandResult.java:91)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.logAndThrowError(CommandResult.java:81)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.checkFailure(CommandResult.java:66)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(CommandUtil.java:44)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(CommandUtil.java:36)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.VcsRootCommand.runCommand(VcsRootCommand.java:31)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CloneCommand.call(CloneCommand.java:103)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.syncRepository(MercurialVcsSupport.java:428)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.getBranchesRevisions(MercurialVcsSupport.java:470)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.getCurrentState(MercurialVcsSupport.java:457)
at jetbrains.buildServer.vcs.impl.VcsRootInstancesManagerImpl$SVcsRootInstance.getCurrentState(VcsRootInstancesManagerImpl.java:135)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getCurrentState(VcsChangesLoaderImpl.java:83)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.collectStatesForAllRoots(VcsChangesLoaderImpl.java:176)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getLoadChangesIntervals(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChangesNoLocking(VcsChangesLoaderImpl.java:179)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChanges(VcsChangesLoaderImpl.java:72)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:239)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:100)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

1 comment
Comment actions Permalink

Hi Jim

I cannot reproduce such error yet.
Could you please post a screenshot of your VCS root settings.

0

Please sign in to leave a comment.