且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在TeamCity中有条件地运行构建步骤

更新时间:2022-06-15 21:46:03

无法根据条件执行构建步骤.对相关请求进行投票: https://youtrack.jetbrains.com/issue/TW-17939.
推荐的方法是为每个分支创建单独的构建配置.您可以使用模板来简化设置.在这种情况下,将更容易解释结果,并且构建的统计信息将为您提供有益的信息.
另请参阅相关的答案(建议使用hack).

It is not possible to execute build step based on condition. Vote for the related request: https://youtrack.jetbrains.com/issue/TW-17939.
The recommended approach is to create separate build configuration for each branch. You can use templates to simplify the setup. In this case it will be easier to interpret the results and the statistics of the builds will be informative.
Also see the related answer (hack is suggested).