diff --git a/PHPCI/View/Project/view.phtml b/PHPCI/View/Project/view.phtml index 9f419eff..bb3566f6 100644 --- a/PHPCI/View/Project/view.phtml +++ b/PHPCI/View/Project/view.phtml @@ -18,7 +18,7 @@ - getType(), array('github', 'bitbucket'))): ?> + getType(), array('github', 'gitlab','bitbucket'))): ?>

To automatically build this project when new commits are pushed, add the URL below @@ -31,6 +31,11 @@ print ' as a "WebHook URL" in the Service Hooks section of your Github repository.

' . $url . ''; break; + case 'gitlab': + $url = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . '/gitlab/webhook/' . $project->getId(); + print ' as a "WebHook URL" in the Web Hooks section of your Gitlab repository.

' . $url . ''; + break; + case 'bitbucket': $url = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . '/bitbucket/webhook/' . $project->getId(); print ' as a "POST" service in the Services section of your Bitbucket repository.

' . $url . '';