Fen*_*ton 6 azure-devops azure-pipelines azure-artifacts
我正在使用Visual Studio Online - Package Manager Preview以及新的构建系统.包管理器预览添加了许多构建步骤,包括"NuGet Publisher"步骤,该步骤应将包推送到由Visual Studio Online托管的私有源.
现在文档有点不合时宜了.与auth和个人访问令牌的文档一样.有一些迹象表明,只要您设置了权限(构建服务帐户具有服务端点和包管理器扩展的权限),您就不应该在VSO和程序包管理器之间进行身份验证.实际的构建步骤会要求您从服务端点列表中进行选择,这就是我尝试过的.
当我在服务端点上没有放置凭据时,我收到错误:
Server Key must be set, set the password on the generic service
Run Code Online (Sandbox Code Playgroud)
当我尝试将API密钥放在服务端点上时,它似乎在保存时被丢弃...并且错误更改为:
2015-11-18T08:35:24.5678951Z Invoking nuget with push C:\a\1\s\EventViewer\bin\Release\Project.Name.1.1.12.0.nupkg -s https://example.pkgs.visualstudio.com/DefaultCollection/_packaging/example/nuget/v3/index.json usfusmx4ez6mlfqwpp2abzc7e37denfcp7bxsep2hqij3tp4qwvq on C:\a\1\s\EventViewer\bin\Release\Project.Name.1.1.12.0.nupkg
2015-11-18T08:35:24.5688946Z C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\tools\NuGet.exe push C:\a\1\s\EventViewer\bin\Release\Project.Name.1.1.12.0.nupkg -s https://example.pkgs.visualstudio.com/DefaultCollection/_packaging/Example/nuget/v3/index.json usfusmx4ez6mlfqwpp2abzc7e37denfcp7bxsep2hqij3tp4qwvq
2015-11-18T08:35:25.3467312Z Please provide credentials for: https://example.pkgs.visualstudio.com/DefaultCollection/_packaging/Example/nuget/v3/index.json
2015-11-18T08:35:25.3667189Z ##[error]Object reference not set to an instance of an object.
2015-11-18T08:35:25.3677179Z UserName: Password:
2015-11-18T08:35:25.4647059Z ##[error]Unexpected exit code 1 returned from tool NuGet.exe
Run Code Online (Sandbox Code Playgroud)
我也试图使用个人访问令牌无济于事.
如何使发布步骤正常工作?
| 归档时间: |
|
| 查看次数: |
3101 次 |
| 最近记录: |