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:

https://medium.com/@XebiaLabs/tracking-the-dev-qa-cycle-with-xl-release-a0357d5f5b4a

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 …