【问题标题】:Is it possible to force a TeamCity build to rebuild dependencies when triggered over HTTP?通过 HTTP 触发时,是否可以强制 TeamCity 构建重建依赖关系?
【发布时间】:2013-02-04 15:02:33
【问题描述】:

根据 TeamCity 文档,我可以看到可以通过 http 触发构建:

http://confluence.jetbrains.com/display/TCD7/Accessing+Server+by+HTTP

例如,

http://testuser:testpassword@teamcity.jetbrains.com/httpAuth/action.html?add2Queue=bt10

但是,我需要强制构建在添加到队列时也重新构建某些依赖项。这可能吗?

【问题讨论】:

    标签: teamcity teamcity-7.1


    【解决方案1】:

    如果将rebuildDependencies=true 添加到查询字符串,则可以强制TeamCity 重建所有依赖项:

    http://testuser:testpassword@teamcity.jetbrains.com/httpAuth/action.html?add2Queue=bt10&rebuildDependencies=true
    

    也可以部分重建依赖关系,但这并不容易,因为您需要以某种方式检索一些内部 id,但这些 id 通常不会显示在页面上的任何位置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多