Skip to content

How Can I include the TeamCity build number in the metadata #1358

@RobSmyth

Description

@RobSmyth

Hi,

I want to include the TeamCity build number in the SemVer (AssemblyInformationVersion) metadata. How can I do this?

I want the build server's build number so that releases can be traced back to a particular build in an environment were builds of the same <major>.<minor>.<patch> version number could (in theory) be built multiple times. We need traceability to the build logs.

I'm hoping somebody has already done this. I know that TeamCity sets an environment variable with this number so it is both possible to detect if the build is running from a TeamCity server and what the build number is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions