Is it possible if TeamCity builds a module against all agents when a VCS trigger occurs?

I want the module to be executed by all agents when the VCS trigger condition is met.

Is it possible?

+4
source share
4 answers

One way to do this is to add a schedule trigger that has the ability to run all agents.

+2
source

Looking at him, as I see it, not directly,

behavior can potentially be achieved using the remote command-line pool plugin ( http://confluence.jetbrains.net/display/TW/Command+Line+Remote+Run+Tool ) through a separate assembly configuration associated with VCS to detect changes, causing remote launch tool at the stage of building the command line to create a project for each required agent.

Further research on the command line tool will be required to confirm that this is possible.

There may also be some functionality in the REST API, although my review of the documentation showed nothing.

0
source

Have you had great luck working on alternative solutions?

I created an assembly configuration to update a directory based on the source link directory, based on sources, and this is a snapshot dependency for most, if not all assembly configurations. When I update this directory with a new or newer build, I also want this configuration to run on all build agents.

At the moment, I was just duplicating the configuration and binding it to a specific agent. He adds management overhead, but temporarily resolves the issue.

0
source

You can install this plugin and specify a list of agent names, and it will run once for the "value" in the matrix.

https://github.com/presidentio/teamcity-matrix-build-plugin

0
source

Source: https://habr.com/ru/post/1438935/


All Articles