0

is it possible to configure a hard limit on the number of open changes for a given project in Gerrit?

When too many changes accumulate, rebasing them becomes an issue, especially when every rebase triggers a Jenkins job which takes some time to complete. Hence I am looking for a way to force a limit on the open changes, so that Gerrit rejects new changes when too many are still open.

Thanks for help in advance.

schwart
  • 108
  • 7

1 Answers1

1

You can start with git hooks. You can then use gerrit's ssh api or directly talk to gerrit's database to query outstanding gerrits.

Alternatively, consider using polling in jenkins instead of triggering a build on every change.

akhan
  • 2,446
  • 2
  • 16
  • 10