将Azure管道与Gitlab集成(连续集成) [英] Integrating Azure pipeline with Gitlab (Continuous Integration)

查看:80
本文介绍了将Azure管道与Gitlab集成(连续集成)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将Azure管道CI与我在Gitlab上的存储库一起使用时,我尝试嵌入 yml 文件来运行持续集成,但是我做不到.

当我使用Github时,这个过程确实很容易而且太直接了,但是对于Gitlab,我使用了 Other Git 选项.

但是我的构建是手动运行的,如何使其自动运行,以便当有人提出拉"请求时,CI会运行并检查构建是否通过?

Gitlab Azure管道设置是否有很好的指南?

解决方案

如果您要使用 yml 文件从您的Gitlab存储库中运行CI,我们需要对不起,到目前为止,我们不支持此功能.我们的团队正在致力于扩展服务功能,以方便更多的工程师和用户.

直到现在,如果您选择 Other Git 来连接您的Gitlab仓库,则合并请求完成后,它将自动被触发.这意味着在创建请求请求之后,就无法在Azure Devops中触发生成.这样将无助于您在合并请求完成之前完成构建验证.

在我们的官方功能建议论坛中,有一个这样的

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.

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?

解决方案

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.

这篇关于将Azure管道与Gitlab集成(连续集成)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆