TeamCity自动递增插件修改版本号

TeamCity自动递增插件修改版本号,teamcity,teamcity-8.0,Teamcity,Teamcity 8.0,我正在使用TeamCity自动递增插件: 我正在尝试修改以下位置的配置文件:[TeamCity数据目录]/config/autoincrementer.properties 在配置文件中,它表示: # Autoincrementer plugin (pre 6.5 EAP). # # This file contains values for auto-incremented properties. # Each auto-incremented property must start with

我正在使用TeamCity自动递增插件:

我正在尝试修改以下位置的配置文件:[TeamCity数据目录]/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和at autoinc.foo=1683367:!200在这两种情况下,TeamCity将覆盖此文件,并在下一次构建时将其更改回26

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

2) 如果每个autoinc都需要“autoinc_测试”前缀,那么这是如何工作的


我使用的是TeamCity 8.0.6。

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