Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This article is intended to get started with the Gitlab connector in Qlik Application Automation.
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.
The connector blocks are built around the following objects and have create, get and list actions available:
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.
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:
Webhooks are available for the following actions:
The following example registers a webhook for new merge requests in a project and sends a message to Microsoft Teams:
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
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
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