Failed to start build on build agent

Hi,
Please help - Failed to start build on build agent. Following is the error and stack trace:-

Failed to start build: Server was not able to build correct patch, most likely due to VCS errors
Hide stacktrace
jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:114)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:104)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:65)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:70)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:62)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:91)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:59)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:112)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:70)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220)
at java.lang.Thread.run(Unknown Source)
Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build #1 {build id=1}, VCS root: tfs: http://xotfs:8080/tfs/ITArchitecture $/<put path inside TFS here> {instance id=1, parent id=2}, due to error: TFS failed. ExitCode: 1
stdout: TFS Native Verifier v7.1 Copyright (C) 2006-2012 JetBrains s.r.o.
Running under .NET Framework 4.0.30319.296
INFO -
INFO - Use Team Explorer 2010
INFO -
TFS Native Accessor v7.1 Copyright (C) 2006-2012 JetBrains s.r.o.
INFO - Connecting to server http://xotfs:8080/tfs/ITArchitecture
Build Patch:
Server='http://xotfs:8080/tfs/ITArchitecture'
Username='corp\mgarda'
Root='c:\TeamCity\bin\..\temp\TC-TFS-99-3836_711.mappipngs'
CurrentVersion='20'
ERROR - TF10123: The path '$/<put path inside TFS here>' contains the character '<'. Remove the '<' and try again.
System.Exception: TF10123: The path '$/<put path inside TFS here>' contains the character '<'. Remove the '<' and try again. ---> Microsoft.TeamFoundation.InvalidPathException: TF10123: The path '$/<put path inside TFS here>' contains the character '<'. Remove the '<' and try again.
at Microsoft.TeamFoundation.VersionControl.Common.VersionControlPath.GetFullPath(String item, Boolean checkReservedCharacters)
at JetBrains.TeamCity.Tfs.WorkingFolder..ctor(String from, String to) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\WorkingFolder.cs:line 14
at JetBrains.TeamCity.Tfs.WorkingFolder.IncludeRule(String from, String to) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\WorkingFolder.cs:line 93
at JetBrains.TeamCity.Tfs.WorkspaceMappingsFactory.ParseFolder(TextReader reader) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\WorkspaceMappingsFactory.cs:line 81
at JetBrains.TeamCity.Tfs.WorkspaceMappingsFactory.ParseMappings(TextReader tr) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\WorkspaceMappingsFactory.cs:line 34
at JetBrains.TeamCity.Tfs.WorkspaceMappingsFactory.LoadFromFile(String file) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\WorkspaceMappingsFactory.cs:line 23
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\Program.cs:line 280
--- End of inner exception stack trace ---
at JetBrains.TeamCity.Tfs.Program.Main(String[] args) in c:\BuildAgent\work\58b0af5b97257958\TfsNativeAccessor\src\Program.cs:line 386

command: C:\TeamCity\webapps\ROOT\WEB-INF\plugins\.unpacked\tfs\bin\tfs-native.exe @@c:\TeamCity\bin\..\temp\TC-TFS-99-3836_712\command.params, in file: {http://xotfs:8080/tfs/ITArchitecture, /user:***** /password:***** /hash:S, C:\TeamCity\temp\TC-TFS-99-3836_710.result, CleanPatchServerMapped, c:\TeamCity\bin\..\temp\TC-TFS-99-3836_711.mappipngs, 20}
at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.fail(AbstractPatcher.java:93)
at jetbrains.buildServer.vcs.patches.LowLevelPatcher.readPatchStream(LowLevelPatcher.java:156)
at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:79)
at jetbrains.buildServer.vcs.patches.AbstractPatcher.applyPatch(AbstractPatcher.java:42)
at jetbrains.buildServer.agent.impl.patch.PatchApplierImpl.applyPatch(PatchApplierImpl.java:18)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatchInFileIsCompleted(PatchDownloaderImpl.java:84)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:94)

Any suggestions/ideas to correct the issue are welcome.

Thank You

1 comment
Comment actions Permalink

Hi Community,

Issue solved. Overlooked entering the vcs root in build config.

My bad.

thanx

0

Please sign in to leave a comment.