将 Azure 管道与 Gitlab 集成(持续集成)

Integrating Azure pipeline with Gitlab (Continuous Integration)(将 Azure 管道与 Gitlab 集成(持续集成))
本文介绍了将 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 集成(持续集成)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Setup RabbitMQ consumer in ASP.NET Core application(在 ASP.NET Core 应用程序中设置 RabbitMQ 消费者)
Adding Custom header to the excel file(将自定义标题添加到 excel 文件)
ASP.NET masterpages: how to insert markup in the head section inside the aspx?(ASP.NET 母版页:如何在 aspx 内的 head 部分插入标记?)
Cache-Control Headers in ASP.NET(ASP.NET 中的缓存控制标头)
Could not load file or assembly #39;Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed#39;(无法加载文件或程序集“Newtonsoft.Json,版本=4.5.0.0,文化=中性,PublicKeyToken=30ad4fe6b2a6aeed) - IT屋-程序员软件开
Specifying a custom DateTime format when serializing with Json.Net(使用 Json.Net 序列化时指定自定义 DateTime 格式)