我想在TeamCity的配置名称中包含一个变量值。在TeamCity的配置名称中使用变量
例如,如果我的配置名为[Patch release 4.3] - quick build
,我想从变量中取出“4.3”,例如%release.number%
。
我想在TeamCity的配置名称中包含一个变量值。在TeamCity的配置名称中使用变量
例如,如果我的配置名为[Patch release 4.3] - quick build
,我想从变量中取出“4.3”,例如%release.number%
。
至少在这个时候名称中不支持引用(TeamCity 7.x)。 查看/投票相应的feature request。
我现在的解决方法是在http://confluence.jetbrains.com/display/TW/REST+API+Plugin
使用PowerShell脚本通过REST接口$wc = new-object System.Net.WebClient
$wc.Credentials = new-object System.Net.NetworkCredential("user", "pass", "domain")
$wc.UploadString("http://myserver/httpAuth/app/rest/buildTypes/id:<build_id>/name","Put","%branch_name%")
看到“项目设置”更新名称