开发者

In TeamCity, is there a system/environment variable for the current build id?

开发者 https://www.devze.com 2023-01-23 08:09 出处:网络
In TeamCity build configuration we have access to all kinds of properties of the build via the %propertyname% syntax.For example, %env.BUILD_NUMBER%.

In TeamCity build configuration we have access to all kinds of properties of the build via the %propertyname% syntax. For example, %env.BUILD_NUMBER%.

But one seems to be missing, and that is a property for the current build id. That is, the unique identifier assigned to every build. It's what the TeamCity REST api calls the "internal build id". Not to be confused with the BUIL开发者_如何学GoD_NUMBER (which is more like a label), nor the "build type id" (which is the unique id assigned to the build configuration).


This is available as %teamcity.build.id%, at least in version 6, I haven't tried earlier versions.

0

精彩评论

暂无评论...
验证码 换一张
取 消