How can I deploy to a windows share?

I've been using Linux for my career so far, so forgive me if this is a really dumb question :)

I'm trying to set up a nightly deployment of some ASP webapps we have, and to do this I was planning on simply copying the files using a nant copy task. So I set up a share on the target folder, and then got permission denied when trying to copy. So I gave full access to the share to everyone, just to test, and it still doesn't work.

Seems the problem is the user under which Team City runs (SYSTEM, apparently), because running the ant script from the command line works fine. Any ideas on how I can make this work?

2 comments

Hello Aggie,

A quick workaround would be to change the user the TeamCity service runs
under (the local system account, by default). Just create a dedicated teamcity
user, specify it as the account for running the TeamCity agent service
(in the service properties window, "log on" tab) and give it access to your
share.

HTH,
Andrei

A> I've been using Linux for my career so far, so forgive me if this is
A> a really dumb question :)
A>
A> I'm trying to set up a nightly deployment of some ASP webapps we
A> have, and to do this I was planning on simply copying the files using
A> a nant copy task. So I set up a share on the target folder, and then
A> got permission denied when trying to copy. So I gave full access to
A> the share to everyone, just to test, and it still doesn't work.
A>
A> Seems the problem is the user under which Team City runs (SYSTEM,
A> apparently), because running the ant script from the command line
A> works fine. Any ideas on how I can make this work?
A>


0

Thanks, that was easy enough. It doesn't work, but that seems to be because of some issues with domain users vs. local users, I'll have to talk to the local IT group and see if they can help me through the final step.

0

Please sign in to leave a comment.