visual studio - Get Current Sprint/Iteration in a Build Process Template? -


how can current tfs sprint/iteration number included in build number tfs 2012 build template?

i.e. if current iteration release 1/sprint 5, have build number be: 1.5.(rev number).

currently using releasedefaulttemplate.11.1.xaml (release management visual studio 2013 build process template).

very cool!

you need run prior "buildnumber" task in workflow (that's first activity) go retrieve , build data. there no oob help, , suggest use powershell retrieve data , set builddetails. powershell able reused when move tfs 2015 , new build system.

an alternative have used set build number "mybuild_1.5.{build}.{revission}" , use powershell parse out number. easy can use existing powershell achieve it. require @ end of sprint go increment number. not ideal, seconds achieve.

https://github.com/tfsbuildextensions/customactivities/blob/master/source/scripts/applyversiontoassemblies.ps1


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -