TFS New Build and Build Process Template (XAML): How to pass/get unique build request ID RRS feed

  • Question

  • I am calling a console application from within a TFS build process template (copied of DefaultTemplate.xaml).  I would like to pass a the unique "Request ID" to the app.  I cannot find an argument or parameter in the XAML with this value.  Nor can I find much documentation on the "Request ID", however I know one must exist based on the Build history.  The build history "View Summary" tab shows a request ID (ex: "Request 12345").


    How can I get this value within the template (xaml)

    Monday, February 15, 2016 10:40 PM


  • I was able to get the requestId through a collection on the BuildDetail:
    I have to verify the value has a value though.  This seems a little convoluted.  Why are there multiple Request IDs associated with a build?  Nevertheless it appears to work.
    Tuesday, February 16, 2016 6:55 PM