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

queue build triggers #9

Open
faryon93 opened this issue Mar 20, 2018 · 0 comments
Open

queue build triggers #9

faryon93 opened this issue Mar 20, 2018 · 0 comments
Assignees

Comments

@faryon93
Copy link
Owner

When a build is triggered via the http endpoint (webhook or manually in the ui) and a build is already running the trigger is rejected.

If the trigger is a webhook (a parseable POST body is present) triggers should not be rejected, instead they should be queued. The trigger_filter script should extract the head reference which will be stored in the queue. One/many worker goroutine processes the trigger queue one after another.

A manual trigger from the ui has an empty body, a trigger with the head rev null is queued, which marks the most recent version.

The queue should automatically drop duplicate triggers (project equals, branch equals and head ref equals)

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

No branches or pull requests

1 participant