用于自动化Azure DevOps管道的API? [英] API for automating Azure DevOps Pipelines?

查看:205
本文介绍了用于自动化Azure DevOps管道的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过API调用自动化Azure管道的排队,获取有关管道/构建/作业状态的信息,

I want to automate the queue-ing of Azure Pipelines with an API call, get information on the pipeline/build/job status,

  1. Azure Pipelines文档仅针对调用HTTP Rest API"任务提及"API":

  1. 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管道是否有实际的API?
它有可用的API资源管理器吗?
它是否具有适用于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 Azure管道

Trigger Azure Pipelines build via API and Start a build and passing variables through VSTS Rest API (found via the searching for [azure-pipelines] apihere on StackOverflow) point me to the Azure DevOps Services REST API that I had mentioned above.

这篇关于用于自动化Azure DevOps管道的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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