开发者

How can I specify another server to copy the build files onto?

开发者 https://www.devze.com 2022-12-27 13:21 出处:网络
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 se开发者_JAVA百科rv

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 se开发者_JAVA百科rver as X:\ but I got the error that it can't find that path. Can anybody help me? Thanks


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.


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".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号