TeamCity AutoIncrementer插件修改内部版本号

时间:2015-05-28 14:39:11

标签: teamcity teamcity-8.0

我正在使用TeamCity AutoIncrementer插件:https://confluence.jetbrains.com/display/TW/Autoincrementer

我正在尝试修改配置文件:[TeamCity Data Directory] ​​/config/autoincrementer.properties

在配置文件中,它说:

# Autoincrementer plugin (pre 6.5 EAP).
#
# This file contains values for auto-incremented properties.
# Each auto-incremented property must start with 'autoinc_Test.' prefix.
# Value of the property must be a positive integer.
# To use auto-incremented property in a build you can add a reference to the property
# in build configuration settings, e.g: %autoinc_Test.build.number%. When plugin discovers such reference
# initial value for the referenced property will be written in this file.
# You can change properties values in this file manually at any time.
# Note that if you want to set a property to some value you need to put ! character
# before the value (after the equals sign).

我的价值观如下:

autoinc.foo=1683367\:25
autoinc.bar=-1\:10

我认为第一个数字是Perforce的变更列表。

我想将foo的最后一个数字从25更改为200(这是内部版本号)。 我试过把感叹号放在autoinc.foo =!1683367:200和autoinc.foo = 1683367:!200。在这两种情况下,TeamCity都会覆盖此文件,并在下一次构建时将其更改回26。

1)如何更改内部版本号?这是否需要重新启动TeamCity?

2)如果每个autoinc都需要'autoinc_Test',那么它是如何工作的。前缀?

我正在使用TeamCity 8.0.6。

1 个答案:

答案 0 :(得分:0)

我们正在使用的版本通过添加一个!在=符号之后根据文件中的注释(例如autoinc.globalbuildnum =!1)。 我注意到我们使用的版本中的注释与您发布的版本不同。我们使用的是与TeamCity 8.x +兼容的插件,该插件目前位于您发布的链接中。它于2015年4月7日更新