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

Modify SHA-1 matcher in Docker version output #36706

Closed

Conversation

jasontedor
Copy link
Member

The Docker version (docker --version) contains the SHA-1 of the commit used for the build. This commit can be represented as short hash, but not necessarily limited to seven characters. This commit modifies the regular expression used to match the SHA-1 so that we do not fail on builds that use a longer hash.

Closes #36414

The Docker version (docker --version) contains the SHA-1 of the commit
used for the build. This commit can be represented as short hash, but
not necessarily limited to seven characters. This commit modifies the
regular expression used to match the SHA-1 so that we do not fail on
builds that use a longer hash.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@alpar-t
Copy link
Contributor

alpar-t commented Dec 17, 2018

I also just opened #36707 to address this, sorry didn't look at the time and did not realize that you could already be looking at it.

@jasontedor
Copy link
Member Author

@atorok It is no problem. Let us go with #36707 since you added tests too!

@jasontedor jasontedor closed this Dec 17, 2018
@jasontedor jasontedor deleted the docker-version-short-hash branch December 17, 2018 13:23
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v6.6.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker images failing build
5 participants