How to set up a user account to run the built-in runner in Team City

I have a separate build configuration used to deploy embedded files. This configuration uses the command line build runner. I have a bat file that copies output files to another computer share. Output files are created by a different assembly configuration. The problem is that when the city command executes the copy command of Windows XP, I get access to the failure error. How can I set up a user account for a selected build runner? Or how to use assembly files correctly?

+3
source share
1 answer

You can configure the TeamCity service account to run under the account of the corresponding privileged domain, which has access to the resource with the rights to change / write.

Alternatively, roll your own MSBuild copy task, which performs impersonation based on a few additional parameters.

Check out the MSDN docs for creating an MSBuild task , you can inherit from Task, and then implement the method Execute().

+2
source

Source: https://habr.com/ru/post/1731243/


All Articles