有没有办法使用 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/