GitLab Enterprise
GitLab Enterprise is a commercial, self-hosted version of the GitLab platform.
It offers advanced features and support for organizations, making it suitable for large enterprises and businesses that require enhanced security, scalability, and customization options for their software development and DevOps workflows.
Use the SEI Gitlab Enterprise integration to integrate SEI with Gitlab Enterprise.
To integrate SEI with GitLab Enterprise, you have two options based on the accessibility of your GitLab instance:
Private on-premise GitLab Integration: Integration with a private instance of GitLab using an API key.
Public on-premise GitLab Integration: Integration of on-premise instance of GitLab that is publicly accessible using an API key.
Configure the authentication
SEI communicates with GitLab Enterprise by setting up authentication using a Personal Access Token (PAT). you must create a GitLab personal access token to configure the SEI GitHub integration. To learn more on this, Go to Configuring the authentication.
SEI fetches the history for both the builds jobs and triggers jobs for each pipeline from GitLab. The list of all jobs is available in the job selection tab under Deployment Frequency when configuring the DORA profile.
Configuring private on-premise GitLab Integration
The private on-premise integrations are configured using a SEI Satellite. Follow the instructions to download the Satellite configuration file.
Select Integrations under Settings.
Select Available Integrations, locate the GitLab Enterprise integration, and select Install.
Select Private on-premise GitLab Integration
In Integration Name, enter a name for the integration.
Add a description for the integration. (Optional)
In the URL field, add the URL where your Gitlab repository is deployed. For example, if your Gitlab is deployed on a virtual machine (VM), add the URL in the format:
https://<IP_ADDRESS>
.Enter the Personal Access Token in the API key section.
Add the tags for the integration
If applicable, configure Additional Options:
Fetch PRs: Allow SEI to ingest PR data from Gitlab.
Fetch Issues: Allow SEI to ingest data from Gitlab Issues.
Fetch Projects: Allow SEI to ingest data from Gitlab Projects.
Fetch Commits: Allow SEI to ingest commit metadata from Gitlab.
Fetch Commit Files: Allow SEI to ingest data within commits from Gitlab.
Note that SEI fetches a maximum of 250 commits for a pull request.
Select Next and click on Download Config and save the
satellite.yml
file. Update it following the instructions here.
If you experience any issues while configuring the integration using the Ingestion Satellite, refer to the Ingestion Satellite Troubleshooting and FAQs.
Here’s a sample satellite.yml
file:
Use the following optional metadata fields to optimize the ingestion functionality while configuring the integration using the Ingestion Satellite:
Check Project Membership
check_project_membership
The supported values are True/False. By default, this field is set to True
.
When set to True
, SEI selectively considers projects based on token owner membership. For self-hosted Gitlab instances, switching to False
enables SEI to fetch all projects, regardless of the membership. You should never disable this for cloud Gitlab instances.
Fetch PR Patches
fetch_pr_patches
The supported values are True/False
This field determines whether to retrieve patches or file differentials for Pull Requests (PRs).
Fetch Commit Patches
fetch_commit_patches
The supported values are True/False
This field governs the inclusion of commit patches or file differentials in the data.
Fetch Pipelines
fetch_pipelines
The supported values are True/False
This field specifies whether to fetch pipeline data.
PR Commit Limit
pr_commit_limit
Default value: 250
This field sets a cap on the number of commits fetched per Pull Request.
Configuring public on-premise GitLab Integration
Select Integrations under Settings.
Select Available Integrations, locate the GitLab Enterprise integration, and select Install.
Select Public on-premise GitLab Integration
In Integration Name, enter a name for the integration.
Add a description for the integration. (Optional)
In the URL field, add the URL where your Gitlab repository is deployed. For example, if your Gitlab is deployed on a virtual machine (VM), add the URL in the format:
https://<IP_ADDRESS>
.Enter the Personal Access Token in the API key section.
Add the Tags for the integration
If applicable, configure Additional Options:
Fetch PRs: Allow SEI to ingest PR data from Gitlab.
Fetch Issues: Allow SEI to ingest data from Gitlab Issues.
Fetch Projects: Allow SEI to ingest data from Gitlab Projects.
Fetch Commits: Allow SEI to ingest commit metadata from Gitlab.
Fetch Commit Files: Allow SEI to ingest data within commits from Gitlab.
Note that SEI fetches a maximum of 250 commits for a pull request.
Finish configuration and click on Submit.
Last updated