Skip to content

Commit 56312ca

Browse files
committed
review cx
1 parent da209ed commit 56312ca

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

docs/pipelines/process/resources.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Resources in YAML pipelines
33
description: Learn about defining YAML resources that you can consume in your pipelines and using them to download artifacts, call variables, or trigger pipeline automation.
44
ms.topic: conceptual
55
ms.assetid: b3ca305c-b587-4cb2-8ac5-52f6bd46c25e
6-
ms.date: 08/04/2025
6+
ms.date: 08/05/2025
77
monikerRange: "<=azure-devops"
88
#customer intent: As an Azure Pipelines user, I want to know about defining and consuming resources in YAML pipelines so I can use the resources to access artifacts and automate workflows.
99
---
@@ -16,15 +16,29 @@ This article discusses resources for YAML pipelines. A resource is anything a pi
1616

1717
After you define a resource, you can consume it anywhere in your pipeline. For more information and examples, see [Resource definitions](#resource-definitions).
1818

19+
```yaml
20+
resources:
21+
pipelines:
22+
- pipeline: resources1
23+
source: otherPipeline
24+
25+
steps:
26+
- download: resources1
27+
artifact: artifact1.txt
28+
```
29+
1930
You can use resource status to automatically [trigger](#triggers) pipelines by setting the `trigger` property in the resource definition. The pipeline `resources.triggeringAlias` and `resources.triggeringCategory` variables are then set to the resource name and category. These variables are empty unless the `Build.Reason` variable is set to `ResourceTrigger`.
2031

2132
Resources allow full [traceability](#traceability) for the services a pipeline uses, including version, artifacts, associated commits, and work items. If you subscribe to trigger events on your resources, you can fully automate your DevOps workflows.
2233

34+
> [!NOTE]
35+
> This article primarily discusses resources in YAML pipelines. For resources in Classic pipelines, see [About resources for Azure Pipelines](about-resources.md?tabs=classic).
36+
2337
<a name="resource-authorization-in-yaml-pipelines"></a>
2438
<a name="authorize-a-yaml-pipeline"></a>
2539
## Resource authorization
2640

27-
Resources must be authorized to be used in YAML pipelines. Resource owners control the users and pipelines that can access their resources. There are several ways to authorize a YAML pipeline to use resources.
41+
Resources must be authorized to be used in pipelines. Resource owners control the users and pipelines that can access their resources. There are several ways to authorize a YAML pipeline to use resources.
2842

2943
- Use the resource's administration settings to **Grant access permissions to all pipelines**. For example, you can manage secure files and variable groups on the **Pipelines** > **Library** page, and agent pools and service connections in **Project settings** > **Pipelines**. This authorization is convenient for resources you don't need to restrict, such as test resources.
3044

@@ -87,7 +101,7 @@ resources:
87101
source: SmartHotel-CI # name of the pipeline that produces the artifacts
88102
```
89103

90-
To consume a pipeline from another project, include the `project` name in the resource definition. The following example also uses `branch` to resolve the default version when the pipeline is triggered manually or by schedule. The branch input can't have wildcards.
104+
To specify a pipeline from another project, include the `project` name in the resource definition. The following example also uses `branch` to resolve the default version when the pipeline is triggered manually or by schedule. The branch input can't have wildcards.
91105

92106
```yaml
93107
resources:
@@ -235,7 +249,6 @@ resources:
235249
stages:
236250
- Production
237251
- PreProduction
238-
239252
```
240253

241254
#### Pipeline artifact download

docs/pipelines/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
- name: Library & shared resources
184184
displayName: security roles, variables, variable groups, secure files
185185
href: library/index.md
186-
- name: Add resources to a pipeline
186+
- name: Resources in YAML pipelines
187187
href: process/resources.md
188188
- name: Define and target environments
189189
displayName: clusters, vms, resources

0 commit comments

Comments
 (0)