是否可以指定何时运行构建功能? [英] Is it possible to specify when a Build Feature is to be run?

查看:64
本文介绍了是否可以指定何时运行构建功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TeamCity 8.1.4(内部版本30168)

TeamCity 8.1.4 (build 30168)

我注意到Build Feature始终作为Build Steps第一步的第一步运行,但是有可能使Build Feature运行,例如作为step2的第一部分?还是作为Step1的最后一部分?
任何帮助表示赞赏!

I notice that Build Features are always run as first part of first step in the Build Steps, but is it possible to make a Build Feature run e.g. as first part of step2? Or as last part of Step1?
Any help is appreciated!

(如果感兴趣,这是我的具体问题;
我有一个创建特定内部版本号的元运行器,我将其用作构建步骤的第一步.我想使用构建功能"AssemblyInfo修补程序",但这会在元运行器完成其工作之前运行)

(If it is of interest, this is my concrete problem;
I have a meta runner that creates a specific build number, I use this as a first step in the build steps. I want to use the build feature "AssemblyInfo patcher", but this runs before the meta runner has done its thing)

推荐答案

  1. 创建另一个构建配置,将您的meta-runner移到那里.
  2. 将构建参数修改为
  3. 使用%build.number%作为AssemblyInfoPatcher中的替代
  1. Create another build configuration, move your meta-runner there.
  2. Modify your build parameter to report a build number through service message
  3. Create a snapshot dependency from your build configuration to the new one
  4. In the configuration with meta-runner go to general page, enter %dep.META_RUNNER_CONFIG_ID.build.number% to 'build number' field. This will take a build number from the dependency and set it as a build number. META_RUNNER_CONFIG_ID is the Build configuration id you will see on the general page of your configuration where you have moved meta runner.
  5. Use %build.number% as a replacement in AssemblyInfoPatcher

这篇关于是否可以指定何时运行构建功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆