我在配置 TC 时遇到了很大的问题。它是 10.0.2 版本。
我想要这样的构建链: Main - 恢复 nuget 并重建解决方案。代码分析 - 分析代码结果(不签出)使用 Main 作为依赖项。发布 - 发布到 Azure - 使用 Main 的结果。
我将 Main 设置为: Build numer format: %build.counter%.%build.vcs.number....%
VCS checkout dir: auto
代码分析 Build number 格式:%build.counter%.%dep.<mainId>%.%build.vcs.number...%
VCS checkout dir:%dep.<mainId>.build.default.checkoutDir%
主要目录是: 55660246e9f668c3
和代码分析搜索: 9ccd5731845f5aba
所以这是错误的。为什么?为什么?
编辑:
我在“代码分析”构建配置中将 VCS 签出目录设置为“Main”前的硬编码目录名称,55660246e9f668c3
然后它就可以工作了。
所以问题在于%dep.<mainId>.build.default.checkoutDir%