Skip to content

Commit 9f2690d

Browse files
committed
small edit
1 parent d5a22b9 commit 9f2690d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/pipelines/process/run-number.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,18 @@ monikerRange: "<=azure-devops"
1313

1414
Azure Pipelines assigns a unique run number (also called a build number) to each pipeline execution. You can customize these numbers to make them more meaningful for your team, using variables, tokens, and naming patterns.
1515

16-
This article explains how Azure Pipelines build numbers and run numbers are constructed, and how you can customize them in your pipelines.
17-
1816
The run number is used to identify a specific execution of a pipeline or build. The build number is synonymous with the run number.
1917

2018
If you don't specify a build name in YAML pipelines, or you leave the **Name** field blank in Classic pipelines, your run gets a unique integer as its name. You can give runs more useful names that are meaningful to your team. You can use a combination of tokens, variables, and underscore characters in build names.
2119

2220
::: moniker range=">=azure-devops-2020"
2321

24-
You can only customize the run number at the root level of the pipeline with the `name`property. The `name` property is set at the [pipeline](/azure/devops/pipelines/yaml-schema/pipeline) level.
25-
26-
The `name` property only works at the pipeline root and not in templates or stages.
22+
You can only customize the run number at the root level of your pipeline using the `name` property. Set the `name` property at the [pipeline](/azure/devops/pipelines/yaml-schema/pipeline) level. The `name` property isn't supported in templates or stages.
2723

28-
The following example code outputs a customized number like `project_def_main_20240828.1`.
24+
The following code sets a custom run number format like `project_def_main_202408281`:
2925

3026
```yaml
31-
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:r)
27+
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd).$(Rev:r)
3228

3329
steps:
3430
- script: echo '$(Build.BuildNumber)'

0 commit comments

Comments
 (0)