Reputation: 20004
In the DefaultTemplate.11.1.xaml workflow template to get the build number you just did:
BuildDetail.BuildNumber
but this isn't available in the `12 template. How can I achieve the same result?
Note: I see there's a GetBuildDetail
member that comes up in intellisense, but like everything else in these templates if there is an ounce of documentation, I can't find it.
http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.getbuilddetail.aspx is of no help.
Upvotes: 2
Views: 655
Reputation: 22235
They are available in Environment Variables now. There is a Workflow Activity GetEnvironmentVariable you can use. For Name property specify: Microsoft.TeamFoundation.Build.Activities.Extensions.WellKnownEnvironmentVariables.BuildNumber
Upvotes: 3