Quick Notes131 words
Versioning pipeline artifacts — quick notes
Artifact versioning — quick notes
| Item | Detail |
|---|---|
| Set the run number | name: 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.BuildId | Internal, immutable Run ID unique within the Azure DevOps organization |
Build.BuildNumber | The formatted run name |
Build.SourceVersion | Triggering source version; for Git, the commit ID |
| Pipeline-resource metadata | Includes runName, runID, runURI, and sourceCommit |
| Discipline | Build 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.