Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION

Getting started with the GitLab connector in Qlik Application Automation

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
MarkGeurtsen
Support
Support

Getting started with the GitLab connector in Qlik Application Automation

Last Update:

May 10, 2022 1:34:28 PM

Updated By:

Jamie_Gregory

Created date:

Feb 1, 2022 5:55:00 AM

This article is intended to get started with the Gitlab connector in Qlik Application Automation.

Limitations

  • An app can only be used once per user. When the same Gitlab user has multiple connections using the same app an issue occurs when the access token needs to be refreshed.

Authentication and Authorization

First start by creating an app in your Gitlab to obtain a client ID and client secret. This can be done in Preferences -> Applications. For redirect URI provide the following values: https://connector.qlikcloud.com/callback.

Scopes: Select all scopes apart from the sudo scope. Note the client ID and client secret that are provided when registering the app. You will need those when connecting.

To authenticate with Gitlab you create a new connection. The connector makes use of OAuth2 for authentication and authorization purposes. First you will have to provide the client ID and client secret that you obtained in the previous step. If you are using a self hosted version of Gitlab you will have to provide the domain as well, otherwise leave it blank and it will default to gitlab.com. When you click connect you will be prompted with a popup screen to consent a list of permissions for Qlik Application Automation to use.

MarkGeurtsen_3-1643712839737.png

 

Available blocks

The connector blocks are built around the following objects and have create, get and list actions available:

  • Repositories
  • Branches
  • Commits
  • Merge Requests
  • Files
  • Groups
  • Issues

Furthermore, blocks are available to perform commit actions which can be creating new files, updating a file, moving a file, deleting a file or modifying the execution mode of a file.
Webhooks are also available so that automations can be triggered as actions in Gitlab occur.

Example creating a commit and a merge request.

The following automation will create a file, update a file, move a file, delete a file and perform all this in a single commit. Next it will create a merge request from the branch feature/my-feature to the main branch:

MarkGeurtsen_1-1643712631399.png

 

Using Webhooks

Webhooks are available for the following actions:

  • New push event
  • New merge request
  • New deploy
  • New release
  • New tag push event
  • New pipeline event
  • New job event

The following example registers a webhook for new merge requests in a project and sends a message to Microsoft Teams:

MarkGeurtsen_2-1643712656409.png

 

Labels (1)
Comments
LDR
Creator II
Creator II

Hi @MarkGeurtsen 

Thanks for this article.

I'd like to ask you if for Qlik Sense Entreprise for Windows there's a connector for Gitlab. Could you tell us the different options we have?

Thanks in advance

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @LDR 

We have Github connectors for Qlik Cloud, Qlik Sense Enterprise on Windows, and QlikView. I am unaware of a Gitlabconnector at this point, but let me reach out to my connector experts. I do believe though that this may require an idea/feature request. 

I will get back to you.

All the best,
Sonja 

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @LDR 

No connector to GitLab currently exists. 

We suggest using a third-party driver, such as the Devart ODBC Drivers, for on-prem use, but note that this is not an officially supported connector. It should help you get started though.

As for a native connector: please raise an idea in our ideation portal and express your interest. 

All the best,
Sonja 

Version history
Last update:
‎2022-05-10 01:34 PM
Updated by: