views:

57

answers:

1

TFS 2010 exposes a "Build Number Format" property, which contains $(BuildNumberDefinitionName) and $(Rev:.r) variables (among other things). Two and a half parts to my question:

  1. What are all the available variables that can be used here?

  2. Where does the value for $(Rev:.r) come from (where is it stored)?

    a. Can it be reset or changed?

A: 

Open a build definition, go process tab, find "Build Number Format" section and click "..." button at end of it. Here you will see a "Macros>>" button that contains all available variables. As far as I know $(Rev:.r) tells that it's Nth time that this definition has been run in a specific date. It is store in TFS internal database.

afsharm
Is there no supported way to see the current value and reset it?
BlueMonkMN
To see current value, I check completed/queued builds of the build definition. But for resenting have now idea.
afsharm
Completed/Queued builds could be deleted so I don't think that's an accurate way to know which build will be next.
BlueMonkMN