这是对这个问题的继续回答:是否可以向TeamCity构建添加自由文本注释?
在TeamCity自定义构建对话框中,有一个名为“构建注释”的字段。
是否可以从构建内部访问此字段? 可以作为系统属性或环境变量吗?
在TeamCity自定义构建对话框中,有一个名为“构建注释”的字段。
是否可以从构建内部访问此字段? 可以作为系统属性或环境变量吗?
:
http://[host]:[port]/httpAuth/app/rest/builds/id:<internal build id>
如果您需要从C#项目中使用它,您可以考虑使用FluentTc库:
IBuild build = new RemoteTc()
.Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest())
.GetLastBuild(
having => having.Id(216886),
with => with.IncludeChanges(and => and.IncludeComment()));