Running Builds in Sequence

   

After you set up a A configurable build that can build any one of the products in your suite, the logical next step is to build several or all of them at once, in order. This tutorial shows the general approach.

 

First, create a new project called something like "MultiBuild". You want to collect input from the user about which builds to run, then iterate over the answer.

 

 

tt_multibuild1

 

We use an Enhanced Prompt for Variables with type Check List here. At runtime this appears as follows:

 

 

tt_multibuild2

 

The results of the dialog are saved to the Projects variable, separated by a carriage return/linefeed sequence. That means you can iterate over them with a List Iterator.

 

 

tt_multibuild3

 

Inside the list iterator, include the project that actually performs the build, passing the build code as parameter:

 

 

tt_multibuild4

 

The outline of your project now looks like this:

 

tt_multibuild5

 

The final step is to modify your build project (C:\Builds\Build.fbz7 in this example) to accept incoming parameters. You can use the Application Variable ISINCLUDEDPROJECT to determine whether the project should ask the user for input or not.

 

tt_multibuild6

 

Now, if the build project is run from the multibuild project, it won't ask the user which product to build - the correct value is already in the ProductCode variable.