简体   繁体   English

如何使用 Azure DevOps REST API 运行构建/发布管道

[英]How to run build/release pipeline using Azure DevOps REST API

I'm trying to run new build pipeline through azure alert webhook.我正在尝试通过 azure alert webhook 运行新的构建管道。 I'm looking for Azure DevOps REST API for this action.我正在为此操作寻找 Azure DevOps REST API。 I didn't get the proper examples for running the pipeline using REST API.我没有得到使用 REST API 运行管道的正确示例。

As per Azure Documentation , you dont have any rest api to trigger a azure devops build.根据Azure 文档,您没有任何 rest api 来触发 azure devops 构建。 By using rest api you can perform the below azure devops build operations only.通过使用 rest api,您只能执行以下 azure devops 构建操作。

在此处输入图片说明

Assuming by trigger you mean you want to start a build, try the Queue API call listed in VenkateshDodda-MT's answer.假设通过触发器您的意思是您要开始构建,请尝试在 VenkateshDodda-MT 的回答中列出的队列 API 调用。 It queus a new build.它排队一个新的构建。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法使用 Azure Devops 将 yaml 构建管道转换为发布管道? - Is there a way to translate a yaml build pipeline to a release pipeline using Azure Devops? 创建 azure devops 发布管道时出错 - POST rest api - Error while creating azure devops release pipeline - POST rest api 使用 Azure DevOps,如何将发布管道迁移到代码,类似于构建管道 yml? - Using Azure DevOps, how do I migrate a release pipeline to code, similar to build pipeline yml? Azure Devops - YAML 发布管道 - 如何使用下拉列表 select 构建管道中的特定工件 - Azure Devops - YAML Release Pipelines - How to select a specific artefact from a build pipeline using a dropdown list Azure DevOps:如何从 Release Pipeline 中的 PowerShell 脚本构建 Azure Pipeline 检索构建工件? - Azure DevOps: How to retrieve a build artifact from build Azure Pipeline from a PowerShell Script in Release Pipeline? 如何在 azure devops 扩展 api 中获取当前版本的管道 ID - How to get the pipeline Id of the current release in azure devops extension api 使用 Azure 更新给定 scope 的管道变量 - Updating pipeline variables at a given scope using Azure DevOps REST api Azure DevOps 发布管道 - Azure Devops Release Pipeline Azure 使用 terraform 创建 devops 发布管道 - Azure devops release pipeline creation using terraform Azure DevOps 中的构建管道和发布管道有什么区别? - Whats the difference between a build pipeline and a release pipeline in Azure DevOps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM