3

我最近从 8 升级到 Teamcity 9。自从升级以来,我所有的 GIT VCS 都没有更新源。构建日志显示如下,但结帐目录为空。

[04:33:49]Using vcs information from agent file: 53c2fd4d_Test.Project.xml
[04:33:49]Clean build enabled: removing old files from D:\Builds\Test.Project
[04:33:49]Checkout directory: D:\Builds\Test.Project
[04:33:49]Updating sources: server side checkout
[04:33:49][Updating sources] Will perform clean checkout. Reason: "Clean all files before build" turned on
[04:33:49][Updating sources] Transferring cached clean patch for VCS root: Test Project
[04:33:49][Updating sources] Repository sources transferred
[04:33:49][Updating sources] Removing D:\Builds\Test.Project

我尝试清理服务器缓存<TeamCity Data Directory>/system/caches但没有帮助。

4

1 回答 1

1

我们遇到了同样的问题。有一段时间,refs/heads/<BranchName> <HASH>我们在更改选项卡中看到的任何构建都会指向从 8 升级到 9 时的提交。顽固地忽略任何后续签入。

我们的原因可能是 Stash 中的许可用户已用完。但是在我们查看的任何 TeamCity 日志中,没有任何来自 git/stash/swabra 错误的迹象。该存储许可问题已由我们组织的一部分解决,同时我们:

  • 检查onEnable to use tags in the branch specificationVcsRoot 规范。(我们实际上并没有使用标签,我们的分支规范模式永远不会与我们的 stash/git 存储库中的标签匹配。)
  • 此时,web ui 似乎显示了一些相当疯狂的更改集。对于一个分支构建 X,我们看到了来自不相关分支的提交。然而,构建的代码实际上可能是正确的。TeamCity 所见过的每个分支都想重建。
  • 反弹了 TeamCity 服务器。
  • 检查off,然后on再次,“启用在分支规范中使用标签”。

然后我们似乎在 Web UI 中获得了正确的更改集。当然,其中一些步骤是多余的。但这对我们有用。

于 2015-07-23T15:25:54.173 回答