Is it possible on TeamCity to build a module against all agents when a VCS Trigger is met?

StackOverflow https://stackoverflow.com/questions/12822339

  •  06-07-2021
  •  | 
  •  

Question

I would like a module to be run by all agents when a VCS trigger condition is met.

Is this possible?

Was it helpful?

Solution

One way you can do this is by adding a Schedule Trigger which has an option to run on all agents.

OTHER TIPS

Having looked into it, as far as I can see, not directly,

the behaviour could potentially be achieved by using the command line remote runner plugin,(http://confluence.jetbrains.net/display/TW/Command+Line+Remote+Run+Tool) through a seperate build configuration linked to the VCS to detect the changes, calling the Remote Run tool from a command line build step to build the project on each required agent.

Further research into the Command Line Remote Run tool would be required to confirm this is possible.

There may also be some functionality allowing this in the REST API, although my look through the documentation didn't show anything up.

Have you had much luck working on alternative solutions?

I've created a build configuration to update our source managed third party referenced assemblies directory and this is a snapshot dependency on most if not all build configurations. When I update this directory with a new or more recent assembly, I'll too would like this configuration to be run on all build agents.

At the moment, I've simply duplicated the configuration and bound each to a specific agent. It adds management overhead, but has temporarily resolved the issue.

You could install this plugin and specify the list of agent names and it will run once per "value" in the matrix.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top