This project is read-only.

Using QueueBuild

Jan 10, 2012 at 6:13 AM

HI there. Was wondering If anyone had any tips for the QueueBuild custom activity or a getting started guide?  

We’re giving it a try over here at Expedia and want to chain together our build definitions. E.g. have one TFS build definition that drives our build, another that drives our unit tests, another that drives our integrations tests, another for deployment then have a master CI build dfn that calls these using the QueueBuild activity. I looked for some examples but didn’t find anything.

 Thanks!

Jan 20, 2012 at 3:16 AM

Me too please. We would like to use this activity also and would appreciate a little guidance.

Jan 20, 2012 at 4:32 AM
I'll let you know what we figure out!

Jeremy Knievel

On Jan 19, 2012, at 7:16 PM, "Dlloyd" <notifications@codeplex.com> wrote:

From: Dlloyd

Me too please. We would like to use this activity also and would appreciate a little guidance.

Jan 20, 2012 at 3:44 PM

I got QueueBuild working by setting the parameters as follows.

  • BuildController - BuildDetail.BuildController()
  • BuildDefinition - BuildDetail.BuildServer.GetBuildDefinition("ProjectName", "BuildDefinitionName")
  • BuildServer - BuildDetail.BuildServer()
  • Priority - Microsoft.TeamFoundation.Build.Client.QueuePriority.Normal
  • ProcessParameters - Not sure how this string should be fomratted, I will look at the code if I need it.
  • Result - contains an IQueuedBuild Object
Marked as answer by mikeFourie on 2/9/2014 at 10:28 AM
Jan 20, 2012 at 7:21 PM

Here is an example of setting Process Parameters.

Microsoft.TeamFoundation.Build.Workflow.WorkflowHelpers.SerializeProcessParameters(New Dictionary(Of String, Object) From {{"BuildMajor", Major}, {"BuildMinor", Minor}})