【问题标题】:TeamCity AutoIncrementer Plugin Modify Build NumberTeamCity AutoIncrementer 插件修改内部版本号
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多