在Azure DevOps Server 2019中无法下载安全文件错误

问题描述

在构建管道中使用“下载安全文件”任务时,出现错误。这是关于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 Server 2019(17.153.29522.3)
  • 软件版本(17.153.29522.3)(AzureDevOps2019.Update1.1)
  • 数据库服务级别(17.153.29522.3)(AzureDevOps2019.Update1.1)

解决方法

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