Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do an Automated build in TFS 2010 by a label

Tags:

tfs

tfsbuild

I have my automated builds working but I want to be able to go back to a specifc labeled version and build from that source. The build definition under "Process" has the item "Get Version" but this is for a specific changeset which seems fairly useless. Does anyone have any idea how I would go about doing this?

like image 381
John L Avatar asked Oct 19 '11 20:10

John L


2 Answers

The Get Version accepts what TFS calls an versionspec which can be either a changeset or a label. To specify a label just prefix it with an L.

LMyLabel

like image 159
Dylan Smith Avatar answered Oct 01 '22 21:10

Dylan Smith


@Dylan Smith: Is right. You can specify in the advanced Get Version parameter the label by: LmyLabel or CmyChangeset in order to queue a specific version. There are other options like date, "W" (Version last fetched to your workspace), or "T" (latest version) as well.

For more information: Building a Specific Version with Team Build 2008

like image 44
GoRoS Avatar answered Oct 01 '22 22:10

GoRoS