This is a step-by-step guide on how to connect your self-hosted GitLab account to Flow. If your repositories are behind a firewall, allowlist our IPs on port 443 over HTTPS. You also need a public DNS record pointing to the IP address to be exposed for Flow analysis. This DNS entry should match the TLS/SSL certificate that the server is utilizing.
Who can use this?
Important: Use a service account to create this integration. Learn more about creating a service account.
To use repos, PRs, tickets and Webhooks when integrating with Flow, the service account needs to be a maintainer or owner at the project and repository level. If you prefer not to enable Webhooks, the minimum permission needed in GitLab is reporter at the project and repository level.
GitLab 9.0 or higher
GitLab Enterprise configuration
In order to connect your GitLab Enterprise. first create a new integration.
- In Flow, go to the top navigation bar and click Settings.
- Using the left navigation under Integrations, click Integrations.
- Click Add Integration in the top right hand corner of the integrations page.
- On the following page select GitLab Self-Hosted from the Integration Provider list and click Next.
Choose to connect via an OAuth application or access token.
On any page of your GitLab instance, click your user icon and then navigate to Settings and Applications. Fill in the following information under Add new application:
- Name: Flow
- Redirect URL: https://flow.pluralsight.com/accounts/complete/gitlab-enterprise
- Scopes: api, read_user
Then fill in your Application ID, Client Secret, and Base URL from GitLab into the Flow integration screen.
Tip: Before proceeding to the next step, make sure you have pop-up blockers disabled on your browser. The following steps include a pop-up that finalizes your connection to your GitLab account. If you have pop-ups blocked, you will have to start all over.
Click Connect to GitLab Self-Hosted. If Flow is able to successfully access your instance, you will see a success message.
If your connection is not successful, verify your Client ID and Secret, Base URL, and the callback URL you provided when creating the OAuth application in GitLab.
You can connect via an access token. On the access token tab, input your access token and click Test connection. For more information on where to create an access token in GitLab, see GitLab’s support document Personal access tokens (opens in new tab). Once you've inputted your information, click Test connection.
If the connection was successful, you will receive a success message.
If you receive an error, verify the access token and base URL and try again.
Once you have successfully connected to your GitLab account, click Next.
Then you will select the services you want turned on for this Integration. If you would like to import ticket and pull request data in addition to repo data, leave all services on. You can turn services on and off at any time. Click Next.
Name your integration so you can identify the account you connected with. Click Create.
You can begin to import your repos by going to your repo import page. Click the repo import page link. To learn more about managing your new integration settings, see Manage integrations.
If you need help, please contact Pluralsight Support.