Skip to content

Commit

Permalink
Merged main into live
Browse files Browse the repository at this point in the history
  • Loading branch information
mijacobs committed Sep 5, 2024
2 parents 6631f6c + bb04b14 commit 6600a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pipelines/process/run-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ In YAML pipelines, the build name property is called `name` and must be at the r
>[!NOTE]
>The `name` property doesn't work in template files.
The following example code outputs a customized build number like **project_def_master_20240828.1**.
The following example code outputs a customized build number like **project_def_master_202408281**.

```yaml
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd).$(Rev:r)
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:r)

steps:
- script: echo '$(Build.BuildNumber)'
Expand Down

0 comments on commit 6600a3e

Please sign in to comment.