The GitLab Repository Manager Integration have to be configured on your CDS by a CDS Administrator.
This integration allows you to link a Git Repository hosted by GitLab to a CDS Application.
This integration enables some features:
What you need to perform the following steps:
Notice: if you have already a CDS Application in GitLab for CDS Authentication, you can’t reuse it for Repository Manager.
In GitLab go to Settings / Application section. Create a new application with:
Example for a local configuration:
http://localhost:8080/cdsapi/repositories_manager/oauth2/callback
Scopes:
Set value to appId
and secret
[vcs.servers.Gitlab]
# URL of this VCS Server
url = "https://gitlab.com"
[vcs.servers.Gitlab.gitlab]
#######
# CDS <-> GitLab. Documentation on https://ovh.github.io/cds/hosting/repositories-manager/gitlab/
########
appId = "xxxx"
# Does polling is supported by VCS Server
disablePolling = false
# Does webhooks are supported by VCS Server
disableWebHooks = false
# If you want to have a reverse proxy URL for your repository webhook, for example if you put https://myproxy.com it will generate a webhook URL like this https://myproxy.com/UUID_OF_YOUR_WEBHOOK
# proxyWebhook = ""
secret = "xxxx"
[vcs.servers.Gitlab.gitlab.Status]
# Set to true if you don't want CDS to push statuses on the VCS server
# disable = false
# Set to true if you don't want CDS to push CDS URL in statuses on the VCS server
# showDetail = false
$ engine start vcs
# you can also start CDS api and vcs in the same process:
$ engine start api vcs