Run all builds of a subproject with a single click in the UI
Hi folks,
I use Kotlin DSL to generate a matrix of builds under a subproject, parameterizing a template with different combination of configuration parameters. This works great and the generated build types show up in TC under my subproject as I expect them. For now, I did not enable any VCS trigger for them.
I wonder if there is a way to queue all builds of a subproject with a single click from the UI, instead of having to manually click on each build separately.
Thanks,
Jozsef
Please sign in to leave a comment.
Not directly, but there are two possibilities.
You can set up a "dummy" configuration that depends on all of them, then run this dummy configuration, which will automatically pull up all of its dependencies. This would also allow you to set up a VCS Trigger on it, even set it up to be triggered on VCS changes on the dependencies.
The other possibility is to set up a plugin that adds you some button somewhere that does that, or a script that performs a REST API call to trigger every build (this can also be a new build configuration)
Thanks, Denis, can you elaborate on "setting up a configuration that depends on all of them"? How do I configure this with GUI?
You create a new build configuration, without VCS Roots, and without build steps. Go to the "Dependencies" tab, and set a snapshot dependency on every other build that needs to be triggered at the same time. Then you only need to click "run" on this new configuration, and it will trigger a run on every other build that depends on it.