locked
customizing template workflow with changeset for version build. RRS feed

  • Question

  • Hi, I'm trying to customize my build process.

    I need to generate a number version based in the changeset that was setted at Queue Build Window.

    So, I created a custom activity and put it into UpdateDropLocation in TemplateWorkflow.

    How I pass the GetVersion (from Queue Build Window) to my custom activity?

    Friday, September 2, 2011 8:11 PM

Answers

  • Hi,

    If you specify the changeset number for GetVersion, it should be available anywhere in your build defiintion by accessing the GetVersion argument variable.  Also it should override the IBuildDetail.GetSourceVersion property.  If you are in the Run on Agent scope, it would be the BuildDetail variable.

    To pass one of these to your custom activity, create an InArgument parameter to the activity as shown in Ewald's post.  Then in the workflow, set the property of your custom activity to the variable.

    http://www.ewaldhofman.nl/post/2010/04/29/Customize-Team-Build-2010-e28093-Part-4-Create-your-own-activity.aspx

    I hope this helps,

    Mike


    blog - http://www.codesmartnothard.com
    • Marked as answer by Eduardo Spaki Tuesday, September 6, 2011 1:33 PM
    Monday, September 5, 2011 2:16 AM