From 3b70a8a3c1e3a8b894bcd118e61df9302c574621 Mon Sep 17 00:00:00 2001 From: Dmitry Motylev Date: Tue, 23 Dec 2014 17:34:48 +0000 Subject: [PATCH] fix: DeployCommand does not fail when no one "Post-Deployment Tasks" failed and failed "Deployment Task" exist --- Mage/Command/BuiltIn/DeployCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage/Command/BuiltIn/DeployCommand.php b/Mage/Command/BuiltIn/DeployCommand.php index 943a630..f53eac0 100644 --- a/Mage/Command/BuiltIn/DeployCommand.php +++ b/Mage/Command/BuiltIn/DeployCommand.php @@ -202,7 +202,11 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment if (self::$failedTasks === 0) { $exitCode = 0; } - + + if (self::$deployStatus === self::FAILED) { + $exitCode = 1; + } + return $exitCode; }