用于启动构建的 Teamcity 的 REST API

REST API of Teamcity for initiate a build

任何人都可以建议如何使用 TEAMCITY RestAPI 为 bitbucket/mercurial 存储库中可用的特定项目触发构建并获取构建结果,即 jar/war 文件。

JetBrains help:

To start a build, send POST request to http://teamcity:8111/httpAuth/app/rest/buildQueue with the "build" node in content - the same node as details of a queued build or finished build. The queued build details will be returned.

正常设置构建配置,并使用 REST API 按照上述步骤触发。