Idris Stack
Idris Stack

Reputation: 566

Integrating Azure pipeline with Gitlab (Continuous Integration)

Am trying to use Azure pipeline CI with my repository on Gitlab, I tried to embed a yml file to run the continuous integration but I couldn't.

When I used Github, the process was really easy and too direct, but for Gitlab I used the Other Git option.

enter image description here

But my builds I run them manually, how can I make them automatic so that when someone raise a Pull request a CI runs and checks if the build passes?

Is there a good guide for Gitlab Azure pipeline setup?

Upvotes: 4

Views: 8651

Answers (3)

Wlad Neto
Wlad Neto

Reputation: 381

Gitlab integrates natively with azure devops on this interface. Just go to the "other git" option and put the information like the image below

enter image description here

Upvotes: 2

Mengdi Liang
Mengdi Liang

Reputation: 19026

If what you want is to using a yml file to run the CI from your Gitlab repository, we need to say, sorry, we does not support this feature until now. Our team is contributing to expand the service feature which can make more engineers and users conveniently.

Until now, if you choose Other Git to connect your repos of Gitlab, it will just be triggered automatically after the merge request completed. That's means after the pull request created, it is impossible to trigger the build in Azure Devops. So that it will not help you finish build verification before merge request completed.

In our official feature suggestion forum, there has an such feature suggestion raised by other user. Just vote it and comment it there. Our PM and the product group review these ticket regularly, and considering take it as Roadmap if this feature be voted by many users. Hope you can help our Devops has more and more convenient feature.

In addition, here has an work around may help you achieve this: a third party application named Zapier. There has an event New merge request Event for Gitlab, and for Azure Devops, you can choose Trigger a build.

enter image description here

Upvotes: 3

Jack Jia
Jack Jia

Reputation: 5549

Currently, you can not start with yaml with other git repository.

You may create an Azure devops repo by cloning from your project in Gitlab. Then you can start with "Azure Git Repo YAML"

Update:

For how to run your pipeline automatically, you can use CI triggers with some conditions. Here is a tutorial: Build triggers

Upvotes: 0

Related Questions