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.