1

在 TC 中,可以创建参数化构建,这些构建参数可以使用选择框。

我正在寻找一种方法来动态填充可以选择的值。最好的情况是我可以定义一个查询(与 TC 服务器相同的数据库)并获取值,但我也很高兴通过使用环境变量或包含这些值的文件来看到某种解决方法。

4

1 回答 1

0

As of TeamCity 7.1 this is not possible. You can define parameters and use have them in a select (or multi-select) list but the values must be defined in advance at configuration time not at build time.

You can access and change build parameters from the TeamCity REST API but it only allows you to change the default value, not the available options in the select list. Maybe a future version of the REST API will enable this.

于 2012-12-28T16:46:41.477 回答