无法在八达通中添加外部 VSTS NuGet 提要
Cannot add external VSTS NuGet Feed in Octopus
我正在尝试将外部 NuGet 提要添加到我的 VSTS 源,但是当我保存并测试该提要时,出现以下异常:
NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://*********.pkgs.visualstudio.com/_packaging/QA/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized)
当我在浏览器中输入 feed 的 URL 并输入我的个人访问令牌时,它验证正常...
Octopus version 3.7.18
错误信息表示授权失败。
尝试使用此命令将帐户信息存储在NuGet.config中:
nuget.exe sources add -name {your feed name} -source {your feed URL} -username {anything} -password {your PAT}
或者
nuget.exe sources add -name {feed name} -source {feed URL} -username {username} -password {PAT} -StorePasswordInClearText
更多信息,可以参考这篇文章:Authenticating to feeds with NuGet
我联系了章鱼支持,他们确认这是一个错误:
https://github.com/OctopusDeploy/Issues/issues/3081
与此同时,您可以只使用 VSTS 的 V2 提要 url,它可以很好地进行身份验证:
https://<instance-name>.pkgs.visualstudio.com/_packaging/<feed-name>/nuget/v2
我正在尝试将外部 NuGet 提要添加到我的 VSTS 源,但是当我保存并测试该提要时,出现以下异常:
NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://*********.pkgs.visualstudio.com/_packaging/QA/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized)
当我在浏览器中输入 feed 的 URL 并输入我的个人访问令牌时,它验证正常...
Octopus version 3.7.18
错误信息表示授权失败。
尝试使用此命令将帐户信息存储在NuGet.config中:
nuget.exe sources add -name {your feed name} -source {your feed URL} -username {anything} -password {your PAT}
或者
nuget.exe sources add -name {feed name} -source {feed URL} -username {username} -password {PAT} -StorePasswordInClearText
更多信息,可以参考这篇文章:Authenticating to feeds with NuGet
我联系了章鱼支持,他们确认这是一个错误:
https://github.com/OctopusDeploy/Issues/issues/3081
与此同时,您可以只使用 VSTS 的 V2 提要 url,它可以很好地进行身份验证:
https://<instance-name>.pkgs.visualstudio.com/_packaging/<feed-name>/nuget/v2