无法检索项目 xxx 中的存储库 xxx。验证正在使用的名称和凭据
The repository xxx in project xxx could not be retrieved. Verify the name and credentials being used
我正在尝试在 Azure DevOps 管道上扩展模板,该管道存在于托管在 Azure Devops 上的存储库中。代码如下所示。
resources:
repositories:
- repository: devops
type: git
name: otherProject/repositoryXYZ
ref: main
parameters:
- name: environment
type: string
values:
- "UAT"
- "Production"
default: "UAT"
trigger:
- none
pr: none
extends:
template: folder/template.yml@devops
parameters:
environment: ${{ parameters.environment }}
当我在存储库 repositoryXYZ 所在的同一项目上部署此管道时,我获得了成功 运行。
例如,我有一个 项目 A,其中包含 5 个管道。上面的管道之一可以成功下载存储库和运行。此管道存在于 repositoryXYZ 所在的项目 A 中。
当我从同一 Azure Devops 组织内的不同项目 项目 B 部署相同的管道时,出现以下错误。
/azure-repo.yml: The repository DevOps in project f1809f72 could not be retrieved. Verify the name and credentials being used.
日志中的项目 ID 用于 项目 B。 (f1809f72).
我尝试更改 DevOps 存储库权限并附加项目
建立集合管理员完全访问权限。 (存储库XYZ)
然后我尝试将存储库放在 github 上,我得到了同样的结果
问题(添加了 PAT 并更改了存储库的目录)
我还尝试编辑项目设置并停用限制作业
选项。 (两个项目的所有限制作业授权设置均已停用)
我错过了什么吗?我如何使用我的管道扩展将从同一 devops 组织内另一个项目的 Azure Devops 存储库下载的模板?
管道根本无法启动 运行ning,所以我猜应该是权限有问题。
我的错误是 template.yml
文件上的引用存储库。在构建管道上,我指向了正确的存储库,但在模板上,我指向了一个无法检索的错误存储库。我更正了这一点,并且能够触发管道。
我正在尝试在 Azure DevOps 管道上扩展模板,该管道存在于托管在 Azure Devops 上的存储库中。代码如下所示。
resources:
repositories:
- repository: devops
type: git
name: otherProject/repositoryXYZ
ref: main
parameters:
- name: environment
type: string
values:
- "UAT"
- "Production"
default: "UAT"
trigger:
- none
pr: none
extends:
template: folder/template.yml@devops
parameters:
environment: ${{ parameters.environment }}
当我在存储库 repositoryXYZ 所在的同一项目上部署此管道时,我获得了成功 运行。
例如,我有一个 项目 A,其中包含 5 个管道。上面的管道之一可以成功下载存储库和运行。此管道存在于 repositoryXYZ 所在的项目 A 中。
当我从同一 Azure Devops 组织内的不同项目 项目 B 部署相同的管道时,出现以下错误。
/azure-repo.yml: The repository DevOps in project f1809f72 could not be retrieved. Verify the name and credentials being used.
日志中的项目 ID 用于 项目 B。 (f1809f72).
我尝试更改 DevOps 存储库权限并附加项目 建立集合管理员完全访问权限。 (存储库XYZ)
然后我尝试将存储库放在 github 上,我得到了同样的结果 问题(添加了 PAT 并更改了存储库的目录)
我还尝试编辑项目设置并停用限制作业 选项。 (两个项目的所有限制作业授权设置均已停用)
我错过了什么吗?我如何使用我的管道扩展将从同一 devops 组织内另一个项目的 Azure Devops 存储库下载的模板?
管道根本无法启动 运行ning,所以我猜应该是权限有问题。
我的错误是 template.yml
文件上的引用存储库。在构建管道上,我指向了正确的存储库,但在模板上,我指向了一个无法检索的错误存储库。我更正了这一点,并且能够触发管道。