gpt4 book ai didi

dependencies - 通过 TeamCity 9 中的参数值覆盖依赖项属性

转载 作者:行者123 更新时间:2023-12-04 18:39:23 24 4
gpt4 key购买 nike

在 TeamCity 9 中,我有两个构建配置:A、B 依赖于 A(快照依赖)。有时 A 单独开始,有时与 B 链式。
我要换 build.number A到(例如)0.<build.counter of B>当 A 被 B 触发时。

根据 docs :

Since TeamCity 9.0, there is a possibility to override the dependencies parameters by redefining them in the dependent build. For example, build configuration A depends on B and B depends on C; A has the ability to change parameters in any of its dependencies using the following format:

reverse.dep.<btID>.<property name>



好的,我在 B 中创建了配置参数: reverse.dep.A.build.number = 0.%build.counter% .
因此,当我启动构建链时,我想 build.number of A 将更改为 0.123 (例如,B 的 build.counter 等于 123),而是 字符串 0.%build.counter%已传递给 A 并且 A 使用自己的属性(property) build.counter .

如何准确传递 TeamCity 参数的值?

最佳答案

到“A”构建开始时,“B”构建仍在队列中,因此没有可用的构建号。 %build.number% 参数无法解析并按字面传递。

尝试创建“C”配置并为其添加快照依赖项(来自 A 和 B)。将 A 和 B 中的内部版本号格式设置为 %dep.C.system.build.number%这样你就可以让 A 和 B 共享同一个计数器。

关于dependencies - 通过 TeamCity 9 中的参数值覆盖依赖项属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29795326/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com