In ui/packages/ui/webpack.common.js:9 the COMMIT_HASH is loaded from `git rev-parse --short HEAD`. When git is not available that command fails. The build should FAIL in that case or when the result isn't a proper SHA hash.
The COMMIT_HASH must then either provided from an environment variable or git needs to be installed in the build environment.
For example, I tried to build the image with OpenShift Pipelines. The git-clone task works like an export (no .git dir available after successful checkout) which means git commands won't work in that kind of repository checkout.
The build is then failing like:
Either we accept that hard exception or we catch it and provide a better error message. WDYT?