2013-01-02 16 views

回答

1

至少在这个时候名称中不支持引用(TeamCity 7.x)。 查看/投票相应的feature request

0

我现在的解决方法是在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%") 

看到“项目设置”更新名称