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

[WIP] Build hooks proposal #3736

Closed
wants to merge 5 commits into from

Conversation

rhcarvalho
Copy link
Contributor

First draft of the proposal, want to run it by @smarterclayton and @bparees for discussion.
@mfojtik @mnagy FYI


As an application developer, I want to be notified or notify other people after
a build completes, email or otherwise, including the build result (success or
failure).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also want information about the thing that was built (eg what's the imageid so i can explicitly pull/inspect the image that was produced)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will include it.
I have it in mind as a part that was not covered yet, which is determining the "signature" of the hooks -- what are the inputs passed to the hooks and what output can/should a hook return apart from side effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW -- do we have any real use case for consuming the image ID, or is it just something we believe might be useful?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need to report it to a webhook. If you trigger something based on a
build completing, not being able to exactly use the output of the build is
unacceptable (ie it's a bug if you can't get the correct image).

On Jul 16, 2015, at 5:20 PM, Rodolfo Carvalho notifications@github.com
wrote:

In docs/proposals/build-hooks.md
#3736 (comment):

+## Use cases
+
+### 1. Build pipeline
+
+As an application developer, I want to be able to trigger a build after an
+upstream build completes
,
+creating a build pipeline.
+
+
+### 2. Integration with external system
+
+As an application developer, I want to be notified or notify other people after
+a build completes, email or otherwise, including the build result (success or
+failure).

BTW -- do we have any real use case for consuming the image ID, or is it
just something we believe might be useful?


Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/3736/files#r34839212.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+As an application developer, I want to be notified or notify other people after
+a build completes, email or otherwise, including the build result (success or
+failure).

If you need to report it to a webhook. If you trigger something based on a
build completing, not being able to exactly use the output of the build is
unacceptable (ie it's a bug if you can't get the correct image).

This section was updated to include the Docker image ID that was built.

@rhcarvalho
Copy link
Contributor Author

Closing this as we decided not to implement build hooks now.
Writing this proposal made us realize Build Hooks are not appropriate to solve the use cases we have in mind, at least for now.

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

Successfully merging this pull request may close these issues.

3 participants