【问题标题】:Run a build configuration in Teamcity using the Rest API使用 Rest API 在 Teamcity 中运行构建配置
【发布时间】: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


    【解决方案1】:

    是的,但仅从 8.1 及更高版本开始

    您需要向http://teamcity.url/httpAuth/app/rest/buildQueue 端点发送一个POST,内容为构建节点。

    例如发布此 XML

    <build>
        <buildType id="MyInterestingJob"/>
    </build>
    

    希望对你有帮助

    【讨论】:

    • 谢谢。我之前确实看到了该参考,但我如何发布我的补丁文件?
    猜你喜欢
    • 2020-06-15
    • 1970-01-01
    • 2015-08-11
    • 1970-01-01
    • 2014-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多