- DotNetFramework1.1_Path is defined under Agents, System Properties as DotNetFramework1.1_Path
- SVNHOME is defined under Agents, Environment Variables as SVNHOME. Note it is referenced as 'SVNHOME' in the get-variable function. The quotes being the key
- tc-logdir is listed as env.tc-logdir under the Build Configuration, Environment Variables. Note when referenced in the script, the env. is dropped and is referenced in quotes
- proptest is listed as proptest under the Build Configuration, System Properties
A Blog simply to put ideas and thoughts back out onto the net for others to find and gain from
Thursday, September 11, 2008
Referencing properties and environment variables with Teamcity
Teamcity allows you to define system properties and environment variables in lots of places. However, I always forget exactly how to reference them in my Nant scripts. So, here's a cheater version for System.Properties and Environment Variables in Nant scripts:
Here are some example variables from a Team City project. Below this list, I'll show how they are referenced
Labels:
Tech
Subscribe to:
Post Comments (Atom)
3 comments:
thanks! just what I needed.
Glad it helped - I've cleaned the post up a bit now for better readability too
Thanks!
helped me out as well - I am a little surprised this is not included in the TeamCity documentation.
Post a Comment