Does anyone know (or know where to find, couldn't myself) what variables I can use on a TFSBuild.proj file for my automated builds?
For example, $(SolutionRoot) gives me the path to all my source files, but I want to copy the built solution from the release directory (ie: \Nightly Build20090127.7\Release\_PublishedWebsites) and I can't find which variable would give me that directory.
To sumarize, I'd like to know the variable for the release directory of an automated build, but would also appreciate a list of other variables I can use (I am using tfs 2008)
You define and manage these variables in the Variables tab in a release pipeline. In the Pipeline Variables page, open the Scope drop-down list and select "Release". By default, when you add a variable, it is set to Release scope. Share values across all of the tasks within one specific stage by using stage variables.
To use a variable group, open your pipeline. Select Variables > Variable groups, and then choose Link variable group. In a build pipeline, you see a list of available groups. In a release pipeline, for example, you also see a drop-down list of stages in the pipeline.
To set environment variables when you start a container in the Azure portal, specify them in the Advanced page when you create the container. Under Environment variables, enter NumWords with a value of 5 for the first variable, and enter MinLength with a value of 8 for the second variable.
Take a look at a blog post I did a while ago when I was trying to figure all this out:
30 Useful Team Build Properties
Also Aaron Hallberg (Lead for the TFS Build Team), has since documented a huge set of properties - not just values but also extensibility properties (i.e. ones that you can set to certain values to control the build process) which is a great reference:
Team Build 2008 Property Reference
I think the property you might be after is $(BinariesRoot) but I am not sure (I tend to build class libraries rather than ASP.NET sites at the moment so don't have a build handy to reference).
Hope that helps,
Martin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With