Solution: How to build a release template to provision multiple environments( dev, qa, test, prod) with variables

1.If the number of environment is fixed, say 4 like in you example, I would solve it with a Master-Sub Template, means you call the same sub template and transfer information by using variables.

  1. if the number is not known at Release Creation date, you have to use dynamic templates:

There is also a “For Each” plugin, most important is the code seen here:

  1. You could also implement Loops by using jython script task:

but I think the most elegant way is a combination of 1 and 2:

Have a dynamic (self changing) release templates, which uses dynamic create “Create Release tasks” and then using a sub release template, where the variables are transferred to …