【发布时间】:2016-07-12 19:19:13
【问题描述】:
我有一个项目位于 Visual Studio Team Services git repo 中。其中有一个 composer 文件,它引用其他 VSTS git repos 作为依赖项。
下面是作曲家文件的示例:
{
"name": "mybiz/app",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://mybiz.visualstudio.com/DefaultCollection/myproject/_git/mybiz-app",
"reference": "someguid"
}
构建定义(也在 Team Services 中)非常简单,任务是执行“composer install”。当我运行构建时,出现此错误:
Loading composer repositories with package information
Installing dependencies from lock file
Installing mybiz/app (1.0.0)
Cloning someguid
Authentication required (mybiz.visualstudio.com):
Username:
[RuntimeException]
Aborted
我在 Team Services 中创建了 PAT 并设置了备用凭据,但我不知道如何在构建代理上使用它们和/或它们是否是解决此问题的正确答案。
【问题讨论】:
标签: git azure-devops azure-pipelines