grundic / teamcity-agent-priority

Plugin for ordering Teamcity build agents.
MIT License
11 stars 4 forks source link
teamcity teamcity-plugin

Teamcity agent priority

Plugin for ordering build agents.

Description

This plugin gives you a possibility to prioritize your build agents by different criteria, so whenever the build starts, available agent with higher weight will be used.

:panda_face: The plugin requires Teamcity version 10+ for correct functionality, as it uses some recent API.

Installation

To install plugin download zip archive it and copy it to Teamcity \<data directory>/plugins (it is $HOME/.BuildServer/plugins under Linux and C:\Users\.BuildServer\plugins under Windows). For more information, take a look at official documentation

Configuration

Build agent prioritization is configured per project. Sub-projects would inherit their parents settings. So, for example, adding configuration to the ROOT project would affect the whole Teamcity server installation. To add priority to selected build, go to the project settings and select Agent priority on the left panel. Then click on Add Priority button and select one of the available prioritizes:

Each priority could have some parameters, which are described on the corresponding configuration page. Multiple priorities could be selected and reordered. For your convenience, there is a possibility to check prioritization: select the build for which you would like to see ordered agent and you would see agents in sorted order.

demo

License

MIT