-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bug 1619470: Add support for listening to hg.mozilla.org pulse messsages. #22
Conversation
cli.StringSliceFlag{ | ||
Name: "hgmo-repo", | ||
Usage: "hg.mozilla.org repo to listend to pushes from (can be used multiple times)", | ||
Value: &cli.StringSlice{"ci/ci-admin", "ci/ci-configuration"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if these should be hard-coded?
(also, this is currently untested) |
d7bcd00
to
b9a7c76
Compare
Added some test (with the docker-specific parts in #23 that this is based on). |
Would you mind rebasing this PR? |
Adding @moz-jvehent for security review. |
if len(data.PushlogPushes) != 1 { | ||
log.Printf("Message %s has %d pushlog pushes, only 1 supported", t, len(data.PushlogPushes)) | ||
break | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomprince and I have been discussing this outside of this PR, but need some sort of verification step here similar to https://github.com/mozilla-services/cloudops-deployment-proxy/blob/master/proxyservice/dockerhub_handler.go#L49
@oremj I think this is ready for review. |
This is to support Bug 1619470, running `ci-admin automatically in cloudops's Jenkins instance. (cc: @edunham)
@oremj This shares a bunch of code with #18 but I realized that that may need a bit more thought on the exact interface that should have between taskcluster and jenkins, where-as I think the interface here is fairly obvious.