GitLab
Last updated
Was this helpful?
Last updated
Was this helpful?
GitLab is an all-in-one CI/CD and source code management platform that streamlines software development. Benefit from GitLab's vast repository data within Rely.io for a comprehensive view of your software lifecycle.
Integrate GitLab with your Rely.io platform to centralize your code repositories, merge requests, and much more. By integrating GitLab, you can better manage your services, streamline your DevOps processes, and ensure that your teams are always on the same page.
During the configuration process, you'll be asked to provide an Access Token. This token must have the following permissions in order for the Rely.io GitLab plugin to work.
Read
✅ API
Enables Rely.io to make API calls to GitLab for various activities like fetching repositories, branches, and merge requests.
✅ Repository
Allows Rely.io to pull repository metadata.
Start by logging into GitLab and navigating to your organization's group page (e.g. ). In the side panel expand the Settings sub-menu and click Access tokens.
This option will only be available if you have the required permissions. To view and create access tokens at the group level, you must have one of the following roles within the group:
Owner
Maintainer
Click on Add new token
.
We recommend assigning the role of Owner for this token to ensure full access to all group-related data, which is crucial for seamless integration. Setting the role to a lower level, such as Guest, may result in limited functionality, such as restricted access to private projects, repositories, and CI/CD pipelines. This could prevent essential data from being retrieved and hinder integration performance.
Check the required scopes (read_api
, read_repository
) for the token.
Name your token for easier future reference, such as "Rely.io GitLab Integration".
Click on Create group access token
.
Once the token is created, make sure to copy and store it securely; you'll need it for the next steps.
Open Rely.io and select Plugins
from with the Portal Builder
.
Click the Add Data Source
button and select GitLab
from the dropdown.
A prompt will appear, asking for details to establish the integration.
Plugin Name: Provide a name for the GitLab plugin.
Access Token: Paste the GitLab Access token generated in Step 2.
After you add the GitLab plugin, an entity discovery run will be triggered. The initial discovery run can take up to a few minutes. By the end of this discovery run:
New blueprints will be added to your data model
Once the initial discovery run completes successfully you should see your GitLab plugin under the Active
section of the data sources
page.
Organization Name: Name of your GitLab organization which you can copy from the url (e.g. )
Entities retrieved from the data source will be added to the page for you to either approve or reject them
The next step is to get the GitLab entities imported into your Service Catalog. Check our on how to do it.