Skip to content

If BuildImage fails but logs something about success, don't succeed #2305

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

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

niloc132
Copy link
Contributor

@niloc132 niloc132 commented Feb 2, 2024

This patch ensures that if the docker build commands result in logging the string "Successfully built", the callback from that build will still fail if there was an error in building.

Fixes #2184

This patch ensures that if the docker build commands result in logging
the string "Successfully built", the callback from that build will still
fail if there was an error in building.

Fixes docker-java#2184
@niloc132 niloc132 requested a review from a team as a code owner February 2, 2024 16:59
@niloc132
Copy link
Contributor Author

niloc132 commented Feb 2, 2024

Tested by running integration tests (except swarm), and building a local snapshot, build downstream gradle-docker-plugin, and validating that a pip install command followed by a failing command doesn't result in success.

@eddumelendez eddumelendez added this to the next milestone Feb 26, 2024
@eddumelendez eddumelendez merged commit 4d8c436 into docker-java:main Feb 26, 2024
@eddumelendez
Copy link
Member

Thanks for your contribution, @niloc132 !

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

Successfully merging this pull request may close these issues.

awaitImageId() using BuildImageResultCallback issue
2 participants