fix: deployment should fail on error
This commit is contained in:
@@ -71,6 +71,9 @@ class RunRemoteProcess
|
|||||||
|
|
||||||
$this->activity->save();
|
$this->activity->save();
|
||||||
|
|
||||||
|
if ($processResult->exitCode() != 0 && $processResult->errorOutput()) {
|
||||||
|
throw new \RuntimeException('Remote command failed');
|
||||||
|
}
|
||||||
return $processResult;
|
return $processResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -279,15 +279,13 @@ class DeployApplicationJob implements ShouldQueue
|
|||||||
'hideFromOutput' => $hideFromOutput,
|
'hideFromOutput' => $hideFromOutput,
|
||||||
'setStatus' => $setStatus,
|
'setStatus' => $setStatus,
|
||||||
]);
|
]);
|
||||||
|
$result = $remoteProcess();
|
||||||
|
|
||||||
if ($propertyName) {
|
if ($propertyName) {
|
||||||
$result = $remoteProcess();
|
|
||||||
$this->activity->properties = $this->activity->properties->merge([
|
$this->activity->properties = $this->activity->properties->merge([
|
||||||
$propertyName => trim($result->output()),
|
$propertyName => trim($result->output()),
|
||||||
]);
|
]);
|
||||||
$this->activity->save();
|
$this->activity->save();
|
||||||
} else {
|
|
||||||
$remoteProcess();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private function gitImport()
|
private function gitImport()
|
||||||
|
|||||||
Reference in New Issue
Block a user