Description of problem: Build failed with StatusReason GenericBuildFailed when Configuring wrong Post Commit Build Hooks Version-Release number of selected component (if applicable): 4.2.0-0.nightly-2019-07-11-023129 How reproducible: always Steps to Reproduce: 1.Create app with wrong Post Commit Build Hooks "postCommit": { "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 3. Actual results: Build Failed with GenericBuildFailed reason Expected results: Build Failed with PostCommitHookFailed reason Additional info:
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.