azure-devops - 用于自动化 Azure DevOps Pipelines 的 API?

标签 azure-devops azure-pipelines azure-devops-rest-api

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

  • Azure Pipelines 文档仅提及“调用 HTTP Rest API”任务的“API”:https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/http-rest-api?view=vsts这可能会派上用场,但不是我要找的。
  • 有一个“Azure DevOps Services REST API”:
    https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1
    但是我在那里找不到任何提及“管道”的内容,所以这似乎也不是正确的事情。

    StackOverflow 标签 azure-devops-rest-api也只提到了 VSTS 和 TFS:

    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 相关的不相关文档。

    我只是使用错误的词来搜索吗?

    Azure DevOps Pipelines 是否有实际的 API?
    它有可用的 API Explorer 吗?
    它是否有适合 JavaScript、Ruby 或 PHP 等语言的客户端?

    最佳答案

    似乎我不擅长谷歌搜索:

    Trigger Azure Pipelines build via APIStart a build and passing variables through VSTS Rest API (通过在 StackOverflow 上搜索 [azure-pipelines] api 找到)将我指向我上面提到的 Azure DevOps Services REST API。

    关于azure-devops - 用于自动化 Azure DevOps Pipelines 的 API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53726566/

    相关文章:

    azure-devops - Azure Pipelines 无法与 Github 包一起使用

    git - 如何将 SSH key 上传到 Visual Studio Team Services(用于 Git 存储库)

    .net-core - 使用私有(private)包源在 Azure DevOps 中构建的 Dotnet 无法从私有(private) nuget feed 恢复

    c# - 使用 visualstudio.com Team Services 构建失败,命名空间 'Optimization' 中不存在 'System.Web'

    python - 保持azure管道作业中的postgres docker容器运行

    用于创建新 PAT 的 Azure DevOps Rest API

    azure-devops - 源提供者 - 列出分支 - providerName 是什么?

    azure-devops - 如何在任务成功后通过 `output variable` 部分或 Azure devops 中的其他方法更新管道变量

    azure - 在 Azure DevOps 管道中的 PowerShell 中使用参数

    visual-studio - 从 Azure DevOps 克隆时如何选择首选的 Visual Studio 版本