node-build-monitor icon indicating copy to clipboard operation
node-build-monitor copied to clipboard

TeamCity service doesn't show if build configurations are paused

Open lochsh opened this issue 7 years ago • 2 comments

It would be useful to have an indication of whether a TeamCity build configuration is paused (i.e. all triggers have been disabled, so the CI test isn't currently active).

If a test passes and is then paused for a long time, it can be misleading for the build monitor to show it as successful.

The TeamCity service gets information about specific builds in time, which doesn't give us any information about whether the build configuration they belong to is paused. However, we can find out whether the build config is paused with this API call:

https://teamcity-server/app/rest/buildTypes/id:BuildConfigurationId/paused

Perhaps the grey colour can be used to indicate a paused config, as well as a cancelled build.

lochsh avatar Sep 22 '17 14:09 lochsh

Hey @lochsh, originally the build monitor was intended to show builds. If I understand you correctly, the build itself isn't paused, but the configuration is. So, the gray color could be misleading and will affect all builds belonging to the configuration.

Maybe you could write another service (e.g. TeamCityConfigurations.js) to list all configurations and their state. Feel free to make a PR. ;-)

marcells avatar Sep 23 '17 14:09 marcells

Thanks for getting back to me @marcells, I've been on holiday so sorry for the late response! Adding another service sounds like a good way to tackle this :) I'm not very experienced with JavaScript, but I'll definitely have a go once I have time and come back from my holiday.

lochsh avatar Oct 02 '17 18:10 lochsh