1

我在配置 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%

4

1 回答 1

0

You can set up a snapshot dependency, that builds from the same chain. This will ensure that the same branch, from the same root, with the same revision number (point in time) is checked out to the directory. If you use an artifact dependency, in addition to the snapshot dependency, you can achieve the same point in time consistency. So after your step 1 build runs, regardless of what new changes exist, your second build will be working with the same files your first had.

于 2017-03-03T05:06:18.510 回答