Question

I am using MSBuild task to install a windows service. Everything works fine but the newly installed service runs under local system account. Is there anyway to tell MSBuild to install the service under the same account as TeamCity (TeamCity is running under a special service account). I am runing the build file using TeamCity. I dont want to explicitly specify the user name and password as it is too risky to store this information in plain text.

Build Param does not allow values to be stored as password

Thank you.

Was it helpful?

Solution

It does not seem possible. However, I'd suggest to use Build Parameters instead, they're designed for it. Read more about it here: http://confluence.jetbrains.com/display/TCD6/Defining+and+Using+Build+Parameters+in+Build+Configuration

You'll be able to specify user/password in TeamCity UI (even on every build, if needed)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top