Add deployment status and execute post-deployment tasks if deploy failed (only execute branch reverse and clone removal).