Add a configuration option detection.push_deploy_error_messages which lists messages that indicate a deployment error, e.g. "Error building project" or "Environment redeployment failed".
If one of these error messages is found in the git push stderr log, report it and return a non-zero (failure) exit code, 87.
Note this is only possible on the push that causes the initial error; a subsequent push without a new commit would result in "Everything up-to-date" and a zero (success) exit code.
detection.push_deploy_error_messages
which lists messages that indicate a deployment error, e.g. "Error building project" or "Environment redeployment failed".git push
stderr log, report it and return a non-zero (failure) exit code,87
.