Quick Notes105 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), $(BuildID), $(SourceBranchName) |
Build.BuildId | Globally unique integer |
Build.BuildNumber | The formatted name — not the same thing |
| Must embed | Commit SHA — the only unambiguous link to source |
| Discipline | Publish once, promote thereafter |
Trap: a version with no commit reference cannot identify which rebuild produced the deployed binary.