【发布时间】:2015-12-15 11:27:24
【问题描述】:
我正在使用 TeamCity AutoIncrementer 插件:https://confluence.jetbrains.com/display/TW/Autoincrementer
我正在尝试修改位于 [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 和 autoinc.foo=1683367:!200 处。在这两种情况下,TeamCity 都会覆盖此文件并在下一次构建时将其更改回 26。
1) 如何更改内部版本号?这是否需要重新启动 TeamCity?
2) 如果每个 autoinc 都需要“autoinc_Test”,这到底是如何工作的?前缀?
我正在使用 TeamCity 8.0.6。
【问题讨论】:
标签: teamcity teamcity-8.0