【问题标题】:Can I trigger Team City build from Windows Command Line?我可以从 Windows 命令行触发 Team City 构建吗?
【发布时间】:2016-10-13 04:36:07
【问题描述】:

我在 Teamcity 的 Windows 系统中设置了一个 Teamcity 项目。 但我希望从 Windows 命令提示符触发 Teamcity 构建。 这可能吗? 如果是,是否有任何文档或设置指南?

【问题讨论】:

    标签: windows command-line teamcity command-prompt


    【解决方案1】:

    取自 TeamCity 文档:

    curl -v -u user:password http://teamcity.server.url:8111/app/rest/buildQueue --request POST --header "Content-Type:application/xml" --data-binary @build.xml
    

    https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-TriggeringaBuild

    【讨论】:

    • 感谢您的共鸣!我想知道我需要将具有构建 ID 和代理 ID 的 build.xml 存储在哪里?
    • 尝试使用页面中的构建配置 xml:""
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-17
    • 1970-01-01
    • 2011-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多