Sergey Azarkevich Sergey Azarkevich - 10 months ago 59
Git Question

Bypass verification of particulat commit in Gerrit

I setup Gerrit + TeamCity for automatic verification of changes. But this verification is relatively long and not always relevant. Is it possible skip verification (but not review) of commits with, say, changes only in *.txt files?

One solution I can imagine - setup dummy, empty task in Teamcity for 'verify' such changes, but seems it is not natural way...


More details about used approach.

  1. I setup Gerrit and made basic setup for demo project.

  2. I setup TeamCity VCS trigger for track changes in git repo refs/changes/* and run build on every commit (actually every proposed patch set).

  3. I setup TeamCity feature commit-status-publisher ( for this build configuration, so it publish status of every patchset.

Answer Source

I think you answered your question: set a Teamcity task to approve "special" changes. Another idea: you could create a Gerrit hook to approve these changes, The Git::Hooks could be used for this.