GitLab Version Control

To configure the version control using GitLab, you must perform the following tasks:

  1. Configuring Version Control Settings

  2. Generating a GitLab Token in the GitLab Profile

  3. Configuring a GitLab Token

Configuring Version Control Settings

You must have Account Update privileges to perform this task.

Prerequisites

For AWS, if you want to use Self-managed repository with Bastion node, you must set up the Bastion node by performing the following steps:

  1. Create a VPC with Private and Public Subnets

  2. Configure the Route Tables

  3. Create a Security Group in the VPC

  4. Bring Up the Bastion Host

  5. Configure a Unique SSH Key for Your Account

  6. Configure a Custom SSH Key for the Bastion Node

Configuration

Follow the instructions below to configure Version Control System:

  1. Navigate to Home >> Control Panel >> Account Settings.

  2. On the Account Settings page, scroll down to the Version Control Settings section.

  3. From the Version Control Provider drop-down list, select GitLab.

  4. From the Repository Hosting Type drop-down list, select Service-managed or Self-managed.

  5. For Service-managed, the API Endpoint is auto-populated. For Self-managed, enter a valid URL of GitLab Self-managed account. For Bastion node, select Use Bastion Node and enter the IP Address, User and Port.

  6. Click Save.

The following figure shows a sample Version Control Settings section.

../../../_images/vcs-gitlab.png

The following figure shows a sample Version Control Settings section with the Self-managed and Bastion node options.

../../../_images/gitlab-self-managed.png

Generating a GitLab Token in the GitLab Profile

As a prerequisite, you must obtain a GitLab token. Perform the following steps:

  1. Create a GitLab token by following the GitLab Documentation.

  2. Copy the generated GitLab token to configure it in the Qubole account.

Configuring a GitLab Token

You can configure a GitLab Token from the My Accounts UI.

  1. Navigate to Control Panel >> My Accounts.

  2. For your account, under GitLab Token column, click Configure.

  3. Add the generated GitLab token and click Save.

The GitHub token is configured at per user and per account setting level.