GitLab Account

MK
Last updated 2 months ago

Clusterone supports integration with GitLab. This way, you can use code from your Gitlab repositories directly in Clusterone projects without having to check them out on your local machine first.

This page provides a step-by-step guide how to connect your GitLab account to Clusterone. Connecting your accounts is fast and easy, it shouldn't take you longer than a few minutes!

On GitLab

On GitLab, you have to create a personal access token. Clusterone needs this token to authenticate with the GitLab servers and interact with it.

1. Open your GitLab settings

Go to your Gitlab homepage, click on your profile picture in the top right and open Settings.

2. Open Access Tokens

3. Generate a new token

Choose a name for the token (e.g. "Clusterone"), then grant the token API permissions to be able to use full integration features or select read_repository and read_user to only have ability to use existing repositories. This will enable Clusterone to read your repositories and detect new commits. Click the Generate Token button at the bottom to create the token.

Or If you only want to allow Clusterone read access please select:

4. Copy the token

Select the token and copy it. Alternatively, you can click the blue icon next to the token to automatically copy it to the clipboard.

On Clusterone

Now, all you need to do is to enter the token you just created into Clusterone.

5. Access your account settings

Open the Clusterone Matrix and click on your username in the top right. From the drop-down menu, select Access Keys.

6. Paste the GitLab token

Find the GitLab section and add your username and your token.

Congratulations, you have successfully connected your GitLab account to Clusterone! Now you can create projects from your GitLab repositories.

See our documentation page about GitLab projects for more information.