【问题标题】:GIT VCS not updating sources after Teamcity upgradeTeamcity 升级后 GIT VCS 未更新源
【发布时间】:2015-07-26 21:44:03
【问题描述】:

我最近从 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 的服务器缓存,但没有帮助。

【问题讨论】:

    标签: git continuous-integration teamcity teamcity-8.0 teamcity-9.0


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 对我有用的是删除并重新创建 VCS 根目录。
    • 重新创建 VCS 对我也有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-14
    • 2012-12-28
    • 2016-02-13
    • 2016-01-19
    • 2013-09-16
    • 2016-08-14
    相关资源
    最近更新 更多