【发布时间】:2026-01-19 20:30:02
【问题描述】:
作为Azure DevOps - Handling single release for separate code repositories for UI and Dotnet API layer 的延续,我正在尝试通过在存储库下定义多个存储库来检查我的 yaml 中的多个存储库,如下所示。我无法理解在哪里更改分支以确保我的结帐等任务不会发生在 master 上,而是发生在我的自定义分支上。
resources:
repositories:
- repository: mybitbucketrepo
type: bitbucket
endpoint: myserviceconnection
trigger: # CI trigger for this repository, no CI trigger if skipped (only works for Azure Repos)
branches:
include: [ custom-branch ]
name: orgname/reponame
到目前为止,我尝试的内容如下,我得到了错误 - 仅支持“self”、“none”或存储库别名。任何帮助将不胜感激。
- checkout: mybitbucketrepo@custom-branch
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-release-pipeline azure-pipelines-build-task azure-pipelines-yaml