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

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

问题描述

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

当我使用 Github 的时候,这个过程真的很简单也太直接了,但是对于 Gitlab,我使用了 Other Git 选项.

但是我的构建是手动运行的,我怎样才能使它们自动运行,以便当有人提出拉取请求时,CI 会运行并检查构建是否通过?

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

解决方案

如果您想要使用 yml 文件从 Gitlab 存储库运行 CI,我们需要说,对不起,我们直到现在才支持此功能.我们的团队正在为扩展服务功能做出贡献,以方便更多的工程师和用户.

到目前为止,如果你选择Other Git连接你的Gitlab的repos,它只会在合并请求完成后自动触发.这意味着在创建拉取请求后,不可能在 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天全站免登陆