CodePlex

I am trying to use TeamCity with a project hosted at CodePlex.com. I created a VCS root and when I click the Test Connection button, the test is succesful.

However, I always get the result "Unable to Collect Changes". Looking at the details, I have the error message "Invalid Server Item". Here is my detailed error information:

java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SWTest :: swtest' : Error collecting changes for VCS root 'tfs: https://tfs04.codeplex.com:443/ $/' #1 TFS execution error: Stdout: TFS Native Verifier v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor TFS Native Accessor v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Connecting to server https://tfs04.codeplex.com:443/ ERROR - Invalid server item  Stderr:  Exception: null Exit code: 1 java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SWTest :: swtest' : Error collecting changes for VCS root 'tfs: https://tfs04.codeplex.com:443/ $/' #1 TFS execution error: Stdout: TFS Native Verifier v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor TFS Native Accessor v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Connecting to server https://tfs04.codeplex.com:443/ 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:33) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:14) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.access$000(TopBuildDependencyGraphImpl.java:34) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java:2) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$4.run(TopBuildDependencyGraphImpl.java:1) at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:4) at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:23) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.runAsSystem(TopBuildDependencyGraphImpl.java:61) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:31) at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:60) at jetbrains.buildServer.serverSide.impl.BuildChangesCollector.collectChangesForBuild(BuildChangesCollector.java:15) at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:1) 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 'SWTest :: swtest' : Error collecting changes for VCS root 'tfs: https://tfs04.codeplex.com:443/ $/' #1 TFS execution error: Stdout: TFS Native Verifier v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Use Tfs from JetBrains.TeamCity.Tfs.Tfs9Accessor TFS Native Accessor v4.0 Copyright (C) 2006-2009 JetBrains s.r.o. INFO  - Connecting to server https://tfs04.codeplex.com:443/ ERROR - Invalid server item

1 comment
Comment actions Permalink

Ahh, figured it out. You need to use the name of your CodePlex TeamProject (CodePlex project name) for your root when creating your VCS connection. Because my CodePlex.com project is named SwTest, I needed to name it $SwTest. Works great now!

0

Please sign in to leave a comment.