Quick Notes131 words

Versioning pipeline artifacts — quick notes

Artifact versioning — quick notes

ItemDetail
Set the run numbername: at pipeline root → Build.BuildNumber
Auto-increment token$(Rev:.r) — resets when the rest of the name changes
Common tokens$(Date:yyyyMMdd), $(Rev:.r), $(Build.BuildId), $(SourceBranchName)
Build.BuildIdInternal, immutable Run ID unique within the Azure DevOps organization
Build.BuildNumberThe formatted run name
Build.SourceVersionTriggering source version; for Git, the commit ID
Pipeline-resource metadataIncludes runName, runID, runURI, and sourceCommit
DisciplineBuild and publish once per run; deploy the same run-scoped artifact without rebuilding

Trap: the visible version string need not contain the commit SHA when retained run/resource metadata provides the durable source link.

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free