用于自动化 Azure DevOps Pipelines 的 API? [英] API for automating Azure DevOps Pipelines?
问题描述
我想通过 API 调用自动执行 Azure Pipelines 的排队,获取有关管道/构建/作业状态的信息,
I want to automate the queue-ing of Azure Pipelines with an API call, get information on the pipeline/build/job status,
Azure Pipelines 文档仅提及调用 HTTP Rest API"任务的API":https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/http-rest-api?view=vsts 这可能会派上用场,但不是我想要的.
Azure Pipelines docs only mention "API" for the "Invoke HTTP Rest API" task: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/http-rest-api?view=vsts That might come in handy, but is not what I am looking for.
有一个Azure DevOps Services REST API":https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1但是我在那里找不到任何提及管道"的内容,因此这似乎也不正确.
There is a "Azure DevOps Services REST API": https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1 But I couldn't find any mention of "Pipeline" there, so this doesn't seem to be the right thing as well.
StackOverflow 标签 azure-devops-rest-api
也只提到了 VSTS 和 TFS:
The StackOverflow tag azure-devops-rest-api
also only mentions VSTS and TFS:
Visual Studio Team Services REST API 是一组 API,允许管理 Visual Studio Team Services 帐户以及 TFS 2015 和 2017 服务器.
Visual Studio Team Services REST APIs is a set of APIs allowing management of a Visual Studio Team Services accounts as well as TFS 2015 and 2017 servers.
除了这两个结果之外,我只找到了这些结果的其他版本或各种副本的翻译 - 以及许多与 Azure 总体相关的不相关文档.
Besides these two results, I only find other versions or translations of various copies of these - and a lot of unrelated documents that are about Azure in general.
我是否只是使用错误的词来搜索?
Am I just using the wrong words to search?
是否有适用于 Azure DevOps Pipelines 的实际 API?
它有可用的 API Explorer 吗?
它是否有适合 JavaScript、Ruby 或 PHP 等语言的客户端?
Is there an actual API for Azure DevOps Pipelines?
Does it have a usable API Explorer?
Does it have proper clients for languages like JavaScript, Ruby or PHP?
推荐答案
看来我不擅长谷歌搜索:
Seems I was bad at googling:
通过 API 触发 Azure Pipelines 构建 和 开始构建并通过 VSTS Rest API 传递变量(通过在 StackOverflow 上搜索 [azure-pipelines] api
)指向我上面提到的 Azure DevOps Services REST API.
Trigger Azure Pipelines build via API and Start a build and passing variables through VSTS Rest API (found via the searching for [azure-pipelines] api
here on StackOverflow) point me to the Azure DevOps Services REST API that I had mentioned above.
这篇关于用于自动化 Azure DevOps Pipelines 的 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!