Traceability is very important in the software develop lifecycle. Teams strive for traceability between requirements and test cases, code check-ins and builds, and code changes and test runs. Talking of traceability, it would be useful to map the binaries in the build output back to the build. In this recipe, you'll learn how to stamp the DLLs in the build output with the build number they are being generated from.
Scenario: The FabrikamTFVC Team wants to label the source code used in the build and tag the label and build output using the build number:
Download the StampBuildNumber.ps1
script provided in the course material. Check-in the StampBuildNumber.ps1
script into the script
folder as illustrated in this screenshot:
Permissions: You'll need to edit build definition permissions to execute this recipe; you can get these permissions by being added to the Build Administrators Group.