Create new build for each parameter in my multiselect list

I'm a newbie in TeamCity. Currently, the multiselect option is storing my selection in a simple list within a variable with a delimiter. I want to figure out how to use multiselect to trigger a build for each server in my list. I couldn't find a way to achieve this without using third-party plugins.

0
1 comment
Avatar
Fedor Rumyantsev
Hello Aleks,

Unfortunately, there is no out-of-the-box way to do that right now, but an upcoming Matrix Builds feature (https://youtrack.jetbrains.com/issue/TW-3661/Matrix-build-configuration) will allow to set up a build with matrix parameters; when such build is started, TeamCity will create virtual builds for each matrix parameter combination. Please consider subscribing to it as to receive updates on its status. 

Currently, you could start multiple builds in the same build configuration using series of REST API calls - it is possible to set up a "starter" build that will invoke REST API to start N builds, each using one of the possible parameter values. You may find some relevant examples here: https://www.jetbrains.com/help/teamcity/rest/2023.05/start-and-cancel-builds.html.
0

Please sign in to leave a comment.