-
Notifications
You must be signed in to change notification settings - Fork 14
How to use
Julia-Alexandrova edited this page Dec 12, 2016
·
88 revisions
All you need to do is:
- add the "RunAs" TeamCity Build Feature or use the advanced options "Run as" of any build step
- specify the user name for RunAsUser. For Windows the following formats are acceptable: username or username@domain or domain\username
- specify the password
That's it! Once the build is run, the plugin runs all commands under the specified Windows user account.
You also can configure settings using the TeamCity configuration parameters or in the file buildAgent\conf\buildAgent.properties
for each build agent:
-
run_as_user - user name
-
run_as_password - user password
-
run_as_additional_args - additional command line arguments for runAs tool
-Dteamcity.runas.ui.enabled=false - to disable UI extensions for runAs plugin