TF401019:名称或标识符为 abc 的 Git 存储库不存在,或者您没有执行正在尝试的操作的权限

问题描述 投票:0回答:1

我收到以下错误:

remote: TF401019: The Git repository with name or identifier Repo456 does not exist or you do not have permissions for the operation you are attempting.

在本地,没问题,一切正常。

到目前为止我所做的:

  1. 关闭了将作业授权范围限制为非发布管道的当前项目
  2. 关闭将发布管道的作业授权范围限制为当前项目
  3. 关闭了保护对 YAML 管道中存储库的访问
  4. ProjectA Build Service
    添加到 ProjectB
    Contributors
     和/或 
    Readers
  5. 将项目A使用的
    Agent Pool Service
    添加到项目B
    Contributors
    和/或
    Readers
  6. 我已将管道的
    Default agent pool
    >
    YAML
    >
    Pipeline
    步骤设置为 ProjectA 使用的代理池服务
    我检查了管道的 
  7. Build pipeline
  8. >
    YAML
    >
    Get source
    选项
    
    
  9. 还有什么可以尝试的?

我的仓库:
    https://dev.azure.com/Org/ProjectA/_git/Repo123
  • 模块存储库:
  • https://dev.azure.com/Org/ProjectB/_git/Repo456
  • 在我的项目中,我有以下 .gitmodules:

Checkout submodules

还尝试过:

[submodule "plugins/MyModule"] path = plugins/MyModule url = https://[email protected]/Org/ProjectB/_git/Repo456

这些步骤取自:

签出来自不同 Azure DEvOps 组织的子模块

TF401019:名称或标识符为 public 的 Git 存储库不存在,或者您无权执行正在尝试的操作

git azure azure-devops azure-pipelines
1个回答
0
投票
[submodule "plugins/MyModule"] path = plugins/MyModule url = ../../ProjectA/Repo456

到我的

checkout
及其子模块
Repo123
时,我可以重现相同的错误,如下所示。
.gitmodules
ProjectA

要解决此问题,我们不仅需要关闭 

Repo456 中的选项到 ProjectB,还需要关闭

[submodule "SubmoduleRepos/Repo456"] path = SubmoduleRepos/Repo456 url = https://[email protected]/MyOrg/ProjectB/_git/Repo456


另请检查

ProjectA的设置中对管道构建服务帐户Limit job authorization scope to current project for non-release pipelines

Protect access to repositories in YAML pipelines

授予

Read
代码的权限。

© www.soinside.com 2019 - 2024. All rights reserved.