Azure DevOps存储库中另一个项目中的Checkout子模块

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

我正在尝试从azure devops中的另一个项目中检出子模块。

steps:

- checkout: self
  submodules: true
  persistCredentials: true
  clean: true

检出同一项目中的另一个存储库。

GOAL

在仓库B中作为子模块添加为仓库A。

Projects

但是我得到了错误:

Cloning into 'E:/build/Agent5/_work/16/s/.azuredevops'...
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
fatal: clone of 'https://dev.azure.com/ORGANIZATION/PROJECTA/_git/REPOSITORYA' into submodule path 'E:/build/Agent5/_work/16/s/.azuredevops' failed

我如何在Azure DevOps存储库中使用YAML实现此目的?

git azure azure-devops git-submodules
2个回答
0
投票
path = .azuredevops url = https://dev.azure.com/ORGANIZATION/PROJECTA/_git/REPOSITORYA

应该是:

path = .azuredevops
url = https://[email protected]/ORGANIZATION/PROJECTA/_git/REPOSITORYA
© www.soinside.com 2019 - 2024. All rights reserved.