Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team Foundation Server Build variables

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)

like image 246
juan Avatar asked Jan 27 '09 19:01

juan


People also ask

How do you use variables in Azure DevOps release pipeline?

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.

How is the variables in variable group accessed in Azure DevOps build release definition?

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.

How do I set an environment variable in Azure?

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.


1 Answers

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.

like image 162
Martin Woodward Avatar answered Oct 19 '22 04:10

Martin Woodward