【问题标题】:Teamcity compilation error only on triggered buildTeamcity 编译错误仅在触发构建时出现
【发布时间】:2017-02-08 11:25:58
【问题描述】:

我有几个由 Teamcity 构建的 Qt 项目。当我对 vcs 进行更改以触发构建时,我总是在同一步骤中遇到相同的构建错误:

[15:27:20][CustomBuild] Rcc'ing resources.qrc...
[15:27:20][CustomBuild] The system cannot find the path specified.
[15:27:20][CustomBuild] Uic'ing src\commandcard.ui...
[15:27:20][CustomBuild] The system cannot find the path specified.
[15:27:20][CustomBuild] Uic'ing src\myclass.ui...
[15:27:20][CustomBuild] The system cannot find the path specified.
[15:27:20][CustomBuild] Uic'ing src\settings.ui...
...

但是,当我通过 UI 以相同的修订版本重新运行构建时,构建执行时不会出错。即使我设置了“重试构建触发器”在第一个错误后重试,错误仍然存​​在。

发生错误后,假定丢失的文件正确存在于磁盘中,因为它们在版本控制中。

Windows 7 64 TeamCity Professional 10.0.4(内部版本 42538)(但问题也出现在旧版本中)

问题也发布到Teamcity community forum

【问题讨论】:

    标签: qt teamcity


    【解决方案1】:

    在这里发布我自己的答案:

    在 Teamcity 工作人员的帮助下,我找到了错误的根源:

    这是我创建用于构建 (QTDIR) 的环境参数错误。它是一个“选择”类型参数,它的标签值是默认值而不是实际值。

    将默认值更改为正确值修复了问题。

    【讨论】:

      猜你喜欢
      • 2013-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-29
      • 2018-07-10
      • 1970-01-01
      相关资源
      最近更新 更多