【问题标题】:Unable to Download Secure File error in Azure DevOps Server 2019Azure DevOps Server 2019 中的无法下载安全文件错误
【发布时间】:2021-02-05 08:02:23
【问题描述】:

在构建管道中使用“下载安全文件”任务时出现错误。这是关于 UWP 构建管道的。

##[debug]Evaluating condition for step: 'Download Signing Key'
##[debug]Evaluating: succeeded()
##[debug]Evaluating succeeded:
##[debug]=> True
##[debug]Result: True
##[section]Starting: Download Signing Key
==============================================================================
Task         : Download secure file
Description  : Download a secure file to a temporary location on the agent machine
Version      : 1.151.2
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=862069)
==============================================================================
##[debug]agent.TempDirectory=C:\uwpagent64\_work\_temp
##[debug]loading inputs and endpoints
##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
##[debug]loading INPUT_SECUREFILE
##[debug]loaded 4
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]Agent.SkipCertValidation=undefined
##[debug]check path : C:\uwpagent64\_work\_tasks\DownloadSecureFile_2a6ca863-f2ce-4f4d-8bcb-15e64608ec4b\1.151.2\task.json
##[debug]adding resource file: C:\uwpagent64\_work\_tasks\DownloadSecureFile_2a6ca863-f2ce-4f4d-8bcb-15e64608ec4b\1.151.2\task.json
##[debug]system.culture=en-US
##[debug]secureFile=3f06a897-0a76-4128-ab68-331d50693270
##[debug]System.TeamFoundationCollectionUri=http://192.168.25.5/BoardPAC%20Collection/
##[debug]SYSTEMVSSCONNECTION auth param ACCESSTOKEN = ***
##[debug]Agent.ProxyUrl=undefined
##[debug]secure file name for id 3f06a897-0a76-4128-ab68-331d50693270 = BoardPACWinApp_TemporaryKey.pfx
##[debug]Agent.TempDirectory=C:\uwpagent64\_work\_temp
##[debug]Absolute path for pathSegments: C:\uwpagent64\_work\_temp,BoardPACWinApp_TemporaryKey.pfx = C:\uwpagent64\_work\_temp\BoardPACWinApp_TemporaryKey.pfx
##[debug]Downloading secure file contents to: C:\uwpagent64\_work\_temp\BoardPACWinApp_TemporaryKey.pfx
##[debug]secure file ticket for id 3f06a897-0a76-4128-ab68-331d50693270 = null
##[debug]task result: Failed
##[error]Error: Download ticket for SecureFileId 3f06a897-0a76-4128-ab68-331d50693270 not found.
##[debug]Processed: ##vso[task.issue type=error;]Error: Download ticket for SecureFileId 3f06a897-0a76-4128-ab68-331d50693270 not found.
##[debug]Processed: ##vso[task.complete result=Failed;]Error: Download ticket for SecureFileId 3f06a897-0a76-4128-ab68-331d50693270 not found.
##[section]Finishing: Download Signing Key

注意:DevOps 服务器版本如下

  • Azure DevOps 服务器 2019 (17.153.29522.3)
  • 软件版本 (17.153.29522.3) (AzureDevOps2019.Update1.1)
  • 数据库服务级别 (17.153.29522.3) (AzureDevOps2019.Update1.1)

【问题讨论】:

    标签: uwp azure-devops azure-pipelines devops azure-devops-server-2019


    【解决方案1】:

    我从运行构建代理的服务器生成了一个测试证书,然后添加了一个全新的Download secure file 任务并上传了该证书。现在它似乎工作正常。 我还将我的 VS 构建工具更新到了 16.7 版。这解决了我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-28
      • 1970-01-01
      • 2019-12-07
      • 2020-10-20
      • 1970-01-01
      • 2022-11-03
      • 1970-01-01
      • 2021-08-14
      相关资源
      最近更新 更多