imrichardcole
imrichardcole

Reputation: 4695

Use variable in Teamcity build config name

I'd like to include a variable value in the TeamCity config name.

For example, if my config is called [Patch release 4.3] - quick build, I'd like the "4.3" to be taken from a variable, e.g %release.number%.

Upvotes: 2

Views: 1176

Answers (2)

garrmark
garrmark

Reputation: 89

My current workaround is to use a powershell script to update the Name via the REST interface

$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%")

see "Project Settings" at http://confluence.jetbrains.com/display/TW/REST+API+Plugin

Upvotes: 0

Yaegor
Yaegor

Reputation: 1832

References are not supported in the names at least at this time (TeamCity 7.x). See/vote for the corresponding feature request.

Upvotes: 1

Related Questions