Description of problem:
Build failed with StatusReason GenericBuildFailed when Configuring wrong Post Commit Build Hooks
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create app with wrong Post Commit Build Hooks
"script": "bundle exec invalid test"
2. Check the build
$ oc get builds
NAME TYPE FROM STATUS STARTED DURATION
ruby-sample-build-1 Source Git@787f1be Failed (GenericBuildFailed) 12 minutes ago 1m50s
Build Failed with GenericBuildFailed reason
Build Failed with PostCommitHookFailed reason
Seems in 4.x, just defined StatusReasonPostCommitHookFailed StatusReason = "PostCommitHookFailed" const, but it's not used.
Fyi, when build update that sets phase status failed should contain log snippet data, but cannot find any logSnippet data from logs of pod in openshift-controller-manager namespace.
Closing this bug due to current engineering priorities, severity, availability of suitable workarounds and lack of customer cases. If this should be addressed, please reopen and provide additional details.