如何编写 azure 函数来触发 azure devops 管道?这甚至可能吗? [英] How do I write an azure function to trigger a azure devops pipeline? Is this even possible?

查看:21
本文介绍了如何编写 azure 函数来触发 azure devops 管道?这甚至可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个可以触发 Azure devops 构建管道的 Azure 函数.但我不确定如何进行此操作,以及是否可以这样做.

I'm trying to set up an Azure function that can trigger a Azure devops build pipeline. But I'm not sure on how to proceed with this and if it's even possible to do so.

我已经准备好可以使用的构建管道,但无法使用 Azure devops 已经提供的常规触发器.我无法透露原因,但我需要使用 Azure 函数来触发它.任何有关这方面的帮助都会非常有帮助.

I already have a build pipeline ready to be used but the conventional triggers that are already provided by Azure devops cannot be used. I can't disclose the reason but I need to trigger it using an Azure function. Any help regarding this would be really helpful.

谢谢.

推荐答案

您可以简单地使用 Azure DevOps 的 REST API 并从您的函数中调用它们.请参阅此处:用于自动化 Azure DevOps Pipelines 的 API?

You can simply use the REST APIs of Azure DevOps and call those from your function. See here: API for automating Azure DevOps Pipelines?

这篇关于如何编写 azure 函数来触发 azure devops 管道?这甚至可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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