This commit is contained in:
parent
686783534c
commit
6513454265
|
@ -188,6 +188,7 @@ class Builder implements LoggerAwareInterface
|
|||
$this->build->sendStatusPostback();
|
||||
$this->success = true;
|
||||
|
||||
try {
|
||||
// Set up the build:
|
||||
$this->setupBuild();
|
||||
|
||||
|
@ -223,6 +224,11 @@ class Builder implements LoggerAwareInterface
|
|||
$cmd = 'rmdir /S /Q "%s"';
|
||||
}
|
||||
$this->executeCommand($cmd, $this->buildPath);
|
||||
} catch (\Exception $ex) {
|
||||
$this->build->setStatus(Build::STATUS_FAILED);
|
||||
$this->buildLogger->logFailure('Exception: ' . $ex->getMessage());
|
||||
}
|
||||
|
||||
|
||||
// Update the build in the database, ping any external services, etc.
|
||||
$this->build->sendStatusPostback();
|
||||
|
|
Loading…
Reference in a new issue