Bug fixes
Signed-off-by: Dan Cryer <dan@block8.co.uk>
This commit is contained in:
parent
088f4c9c4a
commit
b536f972c2
7 changed files with 71 additions and 17 deletions
|
|
@ -116,6 +116,10 @@ class ProjectController extends PHPCI\Controller
|
|||
$email = $_SESSION['phpci_user']->getEmail();
|
||||
$build = $this->buildService->createBuild($project, null, urldecode($branch), $email);
|
||||
|
||||
if ($this->buildService->queueError) {
|
||||
$_SESSION['global_error'] = Lang::get('add_to_queue_failed');
|
||||
}
|
||||
|
||||
$response = new b8\Http\Response\RedirectResponse();
|
||||
$response->setHeader('Location', PHPCI_URL.'build/view/' . $build->getId());
|
||||
return $response;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue