Browse Source

Merge pull request #172 from dmotylev/master

fix: DeployCommand does not fail after failed "Deployment Task"
1.0
Andrés Montañez 10 years ago
parent
commit
755fe138ad
  1. 6
      Mage/Command/BuiltIn/DeployCommand.php

6
Mage/Command/BuiltIn/DeployCommand.php

@ -202,7 +202,11 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
if (self::$failedTasks === 0) { if (self::$failedTasks === 0) {
$exitCode = 0; $exitCode = 0;
} }
if (self::$deployStatus === self::FAILED) {
$exitCode = 1;
}
return $exitCode; return $exitCode;
} }

Loading…
Cancel
Save