Pushbased VCS notifications
We have a reasonably sized installation supporting a few hundred devs and a multitude of projects. We have 781 VCS roots. That makes for >10 scans per second given that all roots are set to 60 seconds.
For other systems (crucible) we have configured our git server (gitolite) to notify when a commit has been made and the other server then takes an action.
My estimate is that we could save something in the neighborhood of "a lot" of resources by preventing teamcity from scanning git every minute, but instead send a notification when a push is actually done. It's also reduce the start time from avg 30 secs to near zero.
Is this possible to achieve right now (TC10.0.2)? If not, could such a feature be considered? From my point of view I can easily configure gitolite to run a script and map the repo name to a VCS ID and invoke some REST API. Probably each repo would need to map to several VCS IDs as some of them are actually pinned to specific branches. Anyway, I am sure this can be elaborated on, I just want to have the general kind of feature.
--Jesper Hogstrom, Tobii AB
Please sign in to leave a comment.
Yes, it's possible to use commit hooks. Please have a look at our documentation on this topic: https://confluence.jetbrains.com/display/TCD10/Configuring+VCS+Post-Commit+Hooks+for+TeamCity