此内容没有您所选择的语言版本。
Chapter 2. Creating pipelines for integration with application and GitOps repositories
This procedure explains how to create Azure pipelines for both your application and your GitOps repository.
Prerequisites
Before you can create the Azure pipelines integrated with your application source code and GitOps repository you must have the following:
- Azure pipelines variable group containing all variables and secrets required by pipeline jobs. See Adding secrets and variables to Azure Pipelines
- Active pipelines agent pool. Each pipeline needs permission to use an agent pool, even if it is a default pool. See Azure Pipelines agents.
- Source code repository and GitOps repository created following instructions in Building an application with sample software templates.
-
Corresponding pool name and variable group referenced in
azure-pipelines.ymlunder both your application source and GitOps repository.
Procedure
- Log in to https://dev.azure.com and open your Azure DevOps project.
- In the navigation panel, select Pipelines, then select Pipelines.
- Select New pipeline to create a new pipeline.
-
Make sure your pipeline name matches the value of annotation
dev.azure.com/build-definitionin theconfig-info.yamlfile under your application source repository. - Select your source control system.
-
Select
All repositoriesand search for your application source repository. Select your application source repository:
- Sign in to your repository.
- Adjust the permissions as needed.
- Select Approve and install.
-
Ensure that the
azure-pipelines.ymlfile contains the reference to your pool name and variable group. - Select Run.
Select Queued job.
NoteYou will see a warning
This pipeline needs permission to access 2 resources before this run can continue- Select view.
- Select Permit for both agent pool and variable group.
- Repeat the procedure, but select the GitOps repository instead of the application source repository in steps 4, 6, and 7.
Revised on 2026-02-04 23:23:40 UTC