使用服务总线队列触发Azure DevOps [英] Triggering Azure DevOps with a Service Bus Queue

查看:77
本文介绍了使用服务总线队列触发Azure DevOps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个为我的静态网站提供支持的CMS,目前,我每次通过源代码管理进行签入时都可以构建自己的网站,但是当我进行CMS更改时,看不到我的更改.

我有解决方法了!
1.更改CMS
2. Prismic CMS将webhook触发器发送到Azure Functions
3. Azure函数解析Webhook并创建与Webhook描述的一样多的内部版本,这些内部版本由服务总线消息表示.
4. Azure Devops读取服务总线并重新推动更改!

不幸的是,我无法执行步骤4 :(有什么方法可以触发Azure管道,以便我可以运行构建和发布吗?

干杯!
Michael.

I have a CMS which powers my Static Website, currently I can build my website each time I make a checkin via source control, however I cannot see my changes when I make CMS changes.

I hada solution! 
1. Make CMS change
2. Prismic CMS sends webhook trigger to Azure Functions
3. Azure functions parses webhook and creates as many builds as the webhook describes which are represented by service bus messages.
4. Service bus is read by Azure Devops and re-pushes changes!

Unfortunately I cannot get step 4 to work :( Is there any way to trigger an Azure Pipeline so I can run my build and release?

Cheers!
Michael.

推荐答案

尽管没有办法直接让服务总线消息触发构建,但是您可以创建一个新的功能或逻辑应用程序,它会使用此消息,然后使用用于Azure DevOps的REST API将构建排队.

Though there isn't a way to directly have the service bus message trigger a build, you can either create a new function or logic app, that consumes this message and then queues a build using the REST API for Azure DevOps.

请参阅此

Refer to this doc for more information on the REST API.

此外,由于已经有可用的连接器,因此使用Logic App会容易得多.

Also, it would be much simpler to use a Logic App since there is a connector available already for it.



这篇关于使用服务总线队列触发Azure DevOps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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