svn - 有没有办法使用 SVN post commit hook 对 VSTS 构建进行排队?

标签 svn azure-devops azure-pipelines post-commit-hook azure-devops-rest-api

有没有办法使用 SVN post-commit-hook 在 VSTS 上触发/排队构建?我们的 svn 存储库位于防火墙后面,因此 VSTS 无法看到它提供的内置轮询。但我希望能够在主干更改后对构建进行排队。 这可能吗?

最佳答案

can use the REST API of Visual Studio Team Services to queue a build 。这应该可以通过钩子(Hook)或本地轮询 SubVersion 服务器的方式实现。

POST https://{accountName}.visualstudio.com/{project}/_apis/build/builds
     ?ignoreWarnings={ignoreWarnings}&checkInTicket={checkInTicket}&api-version=4.1

关于svn - 有没有办法使用 SVN post commit hook 对 VSTS 构建进行排队?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49997557/

相关文章:

xcode - 从 XCode 中的 SVN 存储库中删除文件

java - 乌龟在我所有的根文件夹上加了问号

powershell - 如何通过 PowerShell 使用 Azure DevOps 的内部版本号更新 AssemblyInfo.cs 中的 AssemblyVersion 号?

Windows Server 2019 上的 Azure 管道 powershell 和 git 在输出中出现错误

android - Azure devops 管道构建和部署我的原生 Android 应用程序 Google Play 商店或 App Center 作为 App Bundle

svn - maven 发布 :prepare FAILS due to 1. 7 svn 工作副本(预计为 1.6)

git - 将 SVN 仓库拆分成几个 Git 仓库

azure - 如何手动触发 Azure Pipelines 中的单个作业?

continuous-integration - Azure DevOps 中的条件构建解决方案

无论如何,Azure 管道都不会触发来自 Github 的标签