Mercurial agent side checkout not working

Hi,

I'm having trouble getting the agent side checkout of mercurial to work. I'm using 3.1, with mercurial plugin build #23 from here:

http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt121

Here's an extract from the log:

2008-10-20 16:50:40,680 INFO - jetbrains.buildServer.AGENT - Found runner MSBuild for
http://BuildInfo {teamcity.checkout.on.agent=true, idea.build.server.build.id=1103, teamcity.checkout.on.server=false, teamcity.clean.build=false, teamcity.execution.timeout=0, teamcity.run.type=MSBuild, teamcity.access.code=K1jasl0DTe9h4BBTyImjVjRJ5P04drKp, teamcity.buildType.id=bt22, teamcity.is.personal=false, teamcity.configuration.directory.name=eddd56e503894526}

2008-10-20 16:50:40,710 INFO - jetbrains.buildServer.AGENT - Getting sources...
2008-10-20 16:50:40,720 INFO - jetbrains.buildServer.AGENT - Sources loaded for 0 seconds
2008-10-20 16:50:40,720 INFO - jetbrains.buildServer.AGENT -
jetbrains.buildServer.RunBuildException: Cannot find agent side vcs support for mercurial
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.checkoutSources(GetProjectSources.java:280)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.execute(GetProjectSources.java:98)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction.run(BuildAgentImpl.java:1020)
at java.lang.Thread.run(Thread.java:595)
2008-10-20 16:50:40,750 WARN - ildServer.util.EventDispatcher - java.lang.NullPointerException
java.lang.NullPointerException
at jetbrains.buildServer.coverage.CoverageArtifactsProvider.beforeBuildFinish(CoverageArtifactsProvider.java:59)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:69)
at jetbrains.buildServer.util.EventDispatcher$1.invoke(EventDispatcher.java:36)
at $Proxy0.beforeBuildFinish(Unknown Source)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction$2$1.run(BuildAgentImpl.java:1157)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.runGuarded(BuildAgentImpl.java:383)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$2100(BuildAgentImpl.java:47)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction$2.runInternal(BuildAgentImpl.java:1148)
at jetbrains.buildServer.agent.BuildPostRunnable.run(BuildPostRunnable.java:18)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction.failBuildWithException(BuildAgentImpl.java:1065)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction.run(BuildAgentImpl.java:1048)
at java.lang.Thread.run(Thread.java:595)
2008-10-20 16:50:40,750 INFO - jetbrains.buildServer.AGENT - Build finished: 1103

This is a windows agent. It's got TortoiseHg installed in C:\program files\TortoiseHg

TIA
Cambell

4 comments
Comment actions Permalink

What is the content of plugins folder on your agent?

--
Pavel Sher

0
Comment actions Permalink

C:\BuildAgent\plugins>dir
Volume in drive C has no label.
Volume Serial Number is 4C31-CBE1

Directory of C:\BuildAgent\plugins

10/10/2008 02:54 PM . 10/10/2008 02:54 PM

.. 10/10/2008 02:54 PM ant 10/10/2008 02:53 PM 3,563,726 ant.jar 10/10/2008 02:54 PM antPlugin 10/10/2008 02:53 PM 44,554 antPlugin.zip 10/10/2008 02:54 PM coveragePlugin 10/10/2008 02:53 PM 439,441 coveragePlugin.zip 10/10/2008 02:54 PM cvsAgent 10/10/2008 02:53 PM 585,454 cvsAgent.zip 10/10/2008 02:54 PM dotnetPlugin 10/10/2008 02:53 PM 1,124,393 dotnetPlugin.zip 10/10/2008 02:54 PM duplicatePlugin 10/10/2008 02:53 PM 68,623 duplicatePlugin.zip 10/10/2008 02:54 PM idea 10/10/2008 02:53 PM 47,460,337 idea_dist.jar 10/10/2008 02:54 PM inspectionPlugin 10/10/2008 02:53 PM 68,774 inspectionPlugin.zip 10/10/2008 02:54 PM iprPlugin 10/10/2008 02:53 PM 2,152,271 iprPlugin.zip 10/10/2008 02:54 PM maven-2.0.8 10/10/2008 02:53 PM 1,362,066 maven.jar 10/10/2008 02:54 PM mavenPlugin 10/10/2008 02:53 PM 24,676 mavenPlugin.zip 10/10/2008 02:54 PM mercurial 10/10/2008 02:53 PM 23,076 mercurial-agent.zip 10/10/2008 02:54 PM META-INF 10/10/2008 02:54 PM rcodedupPlugin 10/10/2008 02:53 PM 5,468,511 rcodedupPlugin.zip 10/10/2008 02:54 PM stacktracesPlugin 10/10/2008 02:53 PM 4,093,400 stacktracesPlugin.zip 10/10/2008 02:54 PM svnAgent 10/10/2008 02:53 PM 4,050,900 svnAgent.zip 10/10/2008 02:54 PM testNGPlugin 10/10/2008 02:53 PM 14,938 testNGPlugin.zip 16 File(s) 70,545,140 bytes 19 Dir(s) 76,933,349,376 bytes free C:\BuildAgent\plugins\mercurial\lib>dir Volume in drive C has no label. Volume Serial Number is 4C31-CBE1 Directory of C:\BuildAgent\plugins\mercurial\lib 10/10/2008 02:54 PM . 10/10/2008 02:54 PM ]]> ..
10/20/2008 04:02 PM 4,108 mercurial-agent.jar
10/20/2008 04:02 PM 23,416 mercurial-common.jar
2 File(s) 27,524 bytes
2 Dir(s) 76,932,505,600 bytes free

As far as I can tell they are the latest.

0
Comment actions Permalink

That fixes it. Thanks.

However, the 90 second time limit on clone is still a problem. I've got around that by using a cron job to clone it locally.

When I clone it manually into the agent folder, it still seems to want to delete the folder and clone again.

0

Please sign in to leave a comment.