{"id":2148,"date":"2017-12-07T11:26:23","date_gmt":"2017-12-07T11:26:23","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2148"},"modified":"2020-01-09T09:31:19","modified_gmt":"2020-01-09T09:31:19","slug":"teamcity-with-tfs-workspace-problems","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/teamcity-with-tfs-workspace-problems\/","title":{"rendered":"TeamCity with TFS &#8211; workspace problems"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: TeamCity with TFS &#8211; workspace problems<\/strong><br \/>\n0 vote down star<\/p>\n<p>Hi,<\/p>\n<p>We have been using CC.NET as our CI server for a month or so now, which has worked ok with TFS. In the config we were able to specify the TFS server, username, password, project and workspace which is all good.<\/p>\n<p>Now we are moving over to TeamCity mainly because it just seams more solid and is much nicer to use. The problem is getting it work with TFS.<\/p>\n<p>For the purpose of this, both the workspace and machine name are &#8220;BuildMachine&#8221;, username is &#8220;BuildUser&#8221; TFS project is &#8220;$\/Project\/Dev\/Website&#8221;<\/p>\n<p>I seam to have set it up correctly, I think, as when testing the connection it is successful. When I run a build I get a TFS error: &#8220;RunBuildException when running build stage UpdateSourcesFromServer.&#8221;<\/p>\n<p>It goes on to say: &#8220;No matched workspaces were found. Will recreate workspace and perofming clean checkout.&#8221;<\/p>\n<p>It then tries to create a new workspace something like this: TeamCity-S-sqa9qe2aulx22gz4rzkogl5kr\/BuildUser<\/p>\n<p>It tries to set up some mappings and then fails because: &#8220;The working folder C:\\ is already in use by the workspace BuildMachine;BuildUser on computer BuildMachine&#8221;.<\/p>\n<p>This seams ok as this is the workspace that CC.net was using, and c:\\project\\dev\\website is the path to the project. The problem is, why didn&#8217;t TeamCity pick this up and use this workspace? Why does it try to create its own new one? Any idea how I can fix this?<\/p>\n<p>Thanks<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: TeamCity with TFS &#8211; workspace problems 0 vote down star Hi, We have been using CC.NET as our CI server for a month or so now,&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[449],"tags":[144],"class_list":["post-2148","post","type-post","status-publish","format-standard","hentry","category-teamcity-build-management-tools","tag-teamcity"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2148"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2148\/revisions"}],"predecessor-version":[{"id":2149,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2148\/revisions\/2149"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}