迈尔·帕尔玛(Mehul Parmar)
我正在使用经典的Azure DevOps(不是Yaml)。我阅读了使用git clone
命令来检查构建第二阶段中的第二个存储库。当我这样做时,我得到了没有描述的错误。我看到该文件夹中有可用的代码,但是仍然存在错误。因此,不确定是否一切正常。
git clone -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" https://abc.visualstudio.com/Aq/_git/CodeRepo --verbose
这些是我创建的命令
迈尔·帕尔玛(Mehul Parmar)
该解决方案对我有用-我在经典管道中为此创建了一个PowerShell命令
$env:GIT_REDIRECT_STDERR = '2>&1'
git clone -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" https://abc.visualstudio.com/Aq/_git/CodeRepo
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
编辑于
我来说两句