-
Notifications
You must be signed in to change notification settings - Fork 4
Description
@chrisism thank you for your great work on this task. We're experiencing a minor issue.
We do local deployments by installing the VSTS Agent locally on the target machine. The agent runs under the built-in Windows service account "Network Service".
It seems that we need to grant the "Network Service" user Modify rights on the target deployment folder for Robocopy task to work? Otherwise we get an Access Denied error.
Although this is a fix, we don't like this security-wise.
And we'd like to avoid doing a "net use" command because this requires converting the target deployment folder to a network share which requires extra configuration work and slows down the deployment.
Perhaps you could include 2 parameters in the task so the credentials to run robocopy under can be chosen independent of the credentials the VSTS Agent runs under?
Or if you have a better idea?