【发布时间】:2016-07-27 08:25:15
【问题描述】:
我曾经使用 Jenkins 进行 CI,可以通过 REST api 触发作业。
我目前正在使用 TeamCity 8,并想尝试做同样的事情...
我可以找到我想要使用的构建配置
http://teamcity.url/httpAuth/app/rest/buildTypes/id:MyInterestingJob
是否可以运行该构建配置?
【问题讨论】:
标签: teamcity teamcity-8.0
我曾经使用 Jenkins 进行 CI,可以通过 REST api 触发作业。
我目前正在使用 TeamCity 8,并想尝试做同样的事情...
我可以找到我想要使用的构建配置
http://teamcity.url/httpAuth/app/rest/buildTypes/id:MyInterestingJob
是否可以运行该构建配置?
【问题讨论】:
标签: teamcity teamcity-8.0
是的,但仅从 8.1 及更高版本开始
您需要向http://teamcity.url/httpAuth/app/rest/buildQueue 端点发送一个POST,内容为构建节点。
例如发布此 XML
<build>
<buildType id="MyInterestingJob"/>
</build>
希望对你有帮助
【讨论】: