diff --git a/PHPCI/View/Project/view.phtml b/PHPCI/View/Project/view.phtml index 3067f5ed..a34a0e57 100644 --- a/PHPCI/View/Project/view.phtml +++ b/PHPCI/View/Project/view.phtml @@ -17,8 +17,8 @@
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 . '';