Error while running schedule build

I am trying to set a scheduled build with TeamCity 5 (just downloaded from the site) for .NET (VS2008) with TFS.
I am able to connect to TFS server but whan I am trying to run a scheduled build I get the following error:

Any Ideas what am I doing wrong?


java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'iSend :: iSend2' : Error collecting changes for VCS root 'iSend2'
TFS execution error:
Stdout:
TFS Native Verifier v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor
TFS Native Accessor v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://ctmtfs01:8080/
ERROR - Invalid server item

Stderr:

Exception:
null
Exit code: 1
java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'iSend :: iSend2' : Error collecting changes for VCS root 'iSend2'
TFS execution error:
Stdout:
TFS Native Verifier v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor
TFS Native Accessor v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://ctmtfs01:8080/
ERROR - Invalid server item

Stderr:

Exception:
null
Exit code: 1
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
at java.util.concurrent.FutureTask.get(FutureTask.java:80)
at jetbrains.buildServer.serverSide.impl.CancelableTaskHolder.waitForTaskToComplete(CancelableTaskHolder.java:7)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:33)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.access$000(TopBuildDependencyGraphImpl.java:16)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java:1)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java:2)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$4.run(TopBuildDependencyGraphImpl.java:1)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:5)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:17)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.runAsSystem(TopBuildDependencyGraphImpl.java:71)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:59)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:31)
at jetbrains.buildServer.serverSide.impl.BuildChangesCollector.collectChangesForBuild(BuildChangesCollector.java:6)
at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:22)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'iSend :: iSend2' : Error collecting changes for VCS root 'iSend2'
TFS execution error:
Stdout:
TFS Native Verifier v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor
TFS Native Accessor v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://ctmtfs01:8080/
ERROR - Invalid server item

Stderr:

Exception:
null
Exit code: 1
at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.rethrowIfOurBuildType(ChangesCollectorResultImpl.java:118)
at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.checkNoProblemsInMyBuildTypes(ChangesCollectorResultImpl.java:1)
at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.checkingForChangesFinished(ChangesCollectorResultImpl.java:67)
at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:4)
at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:26)
... 5 more
Caused by: jetbrains.buildServer.vcs.VcsException: Error collecting changes for VCS root 'iSend2'
TFS execution error:
Stdout:
TFS Native Verifier v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor
TFS Native Accessor v4.0 Copyright (C) 2006-2010 JetBrains s.r.o.
INFO - Connecting to server http://ctmtfs01:8080/
ERROR - Invalid server item

Stderr:

Exception:
null
Exit code: 1
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsNativeExeRunner.start(TfsNativeExeRunner.java:50)
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsServerNativeExeRunner.start(TfsServerNativeExeRunner.java:96)
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsCollectChangesPolicy$1.collectChanges(TfsCollectChangesPolicy.java:37)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader$1.collectBuildChanges(VcsChangesLoader.java:1)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:54)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesByIncludeRules(VcsChangesLoader.java:98)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:20)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:172)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:196)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:219)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:105)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:60)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:31)
at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$3.call(VcsChangesCollectorImpl.java)
at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$3.call(VcsChangesCollectorImpl.java:2)
... 5 more

8 comments

Could you please check if TestConnection is working for your TFS VCS root.

Please either check TFS Path field to contain right TFS item to checkout.

Note, $/ is not supported by current implementation, please use longer paths like $/Project/A/B/C

0

I changed $ to the correct path, but now I getthis while the build is running:

RunBuildException when running build stage CallRunnerStage: Cannot find build file by path specified in build configuration settings: 'C:\BuildAgent\work\369a00f16004775b\$\Ezetop\FRONTEND\WQVPS.International\InternationalProducts.sln' (absolute path on agent). Please check that specified path is correct.




Any ideas ?
0

You should use relative path. Just cut the path that was specified in TFS vcs root.

0

It looks like I am able to connect but i get this error:

  • C:\BuildAgent\work\369a00f16004775b\FRONTEND\WQVPS.International\InternationalProducts.sln error MSB4126: The specified solution configuration "Release|BWS" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
  • Thanks for your help

    0

    I get the following error:

    sln2008 output: c:\BuildAgent\bin\..\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe @xml C:\BuildAgent\temp\agentTmp\msbuild12398.teamcity.bootstrap.properties TeamCity MSBuild bootstrap v5.0 Copyright (C) JetBrains s.r.o. Start MSBuild... 'c:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe' '@"C:\Qpay\TFS\EzeTop\FRONTEND\WQVPS.International\InternationalProducts.sln.teamcity.msbuild.tcargs" "C:\Qpay\TFS\EzeTop\FRONTEND\WQVPS.International\InternationalProducts.sln.teamcity.patch.tcprojx"' working dir = 'C:\BuildAgent\work\71fcbc1ab8822558' Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3603] Copyright (C) Microsoft Corporation 2007. All rights reserved. MSBUILD : error MSB1008: Only one project can be specified. Switch: C:\Qpay\TFS\EzeTop\FRONTEND\WQVPS.International\InternationalProducts.sln.teamcity.patch.tcprojx For switch syntax, type "MSBuild /help"

    Process exit code: 1
    Build finished


    0

    Could you please attach a screenshot of the build configuration settings.

    0

    I am able to build the solution now.
    Thank you for your help.

    How do I set TeamCity to publish the solution to a specific folder?

    0

    Meir,

    Not sure what do you need. You can configure TeamCity to publish some artifacts produced by the build to the TeamCity server. Then if you need to use these artifacts in another build started by TeamCity you can use artifact dependencies. In this case before this build starts agent will download necessary artifacts from the TeamCity server. Hope this helps.

    0

    Please sign in to leave a comment.