I'm trying to create a MSBuild script for running in TeamCity. I have a problem when I want to copy the files generated by the Project Build to another server. I tried to map that server as X:\ but I got the error that it can't find that path. Can anybody help me? Thanks
A:
Drive mappings can be problematic to use from build scripts. It would be better if you can use a network share. If not you may have to use a tool like MSDeploy.
Sayed Ibrahim Hashimi
2010-04-15 13:26:42
I can use a network share. but how can i do that?
Raul
2010-04-15 14:12:38
I think he meant using an UNC path to the shared network resource.
Filburt
2010-04-15 18:38:23
A:
Like David commented above, you need to run the Teamcity Agent service as the user that has the drive mapped. To do that, go to the Services console, right click the service "Teamcity Build Agent", Properties, Log On, This account.
What I usually do is to use UNC path and if needed, before reaching the path I authenticate with "net use \machine\folder /USER:domain\user password".
Paulo Manuel Santos
2010-04-28 17:23:43