Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for gerrit stream events #119

Open
eddyseager opened this issue Feb 7, 2018 · 0 comments
Open

Support for gerrit stream events #119

eddyseager opened this issue Feb 7, 2018 · 0 comments

Comments

@eddyseager
Copy link

Rather than SCM polling for gerrit, could the plugin exploit gerrit's stream events and trigger materials using go.cd's notifications API (https://api.go.cd/current/#notify-git-materials)

Here are the docs for gerrit stream events https://gerrit-documentation.storage.googleapis.com/Documentation/2.8.1/cmd-stream-events.html

There is already a Java library here which can be used to listen for such events. https://github.com/sonyxperiadev/gerrit-events. If the gerrit plugin used this library it could trigger the HTTP POST to notify the go.cd server of a material change rather than polling (which puts a lot of load on the server)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant