Skill 3.1.4

Design and implement a versioning strategy for pipeline artifacts

Key Concepts

A build version usually combines a release version with a unique identifier, such as a build number or a commit SHA. Azure Pipelines sets the run number through the name property, and tokens such as $(Rev:r) add a counter.

The artifact is built once and promoted through environments unchanged. For containers, tag images with a commit SHA or version and deploy by digest, because a tag such as latest can move.