Azure Pipelines 安全文件唯一标识符
Azure Pipelines secure file unique identifier
在 Azure Pipelines 中,您可以上传安全文件。下面我上传了一个.p12的证书文件。
然后,您可以使用 InstallAppleCertificate@2 任务引用此文件。如何获取文件唯一标识符的 GUID 值?我没有看到在哪里可以找到这个值。
How do you get the GUID value for the unique identifier of the file?
根据 github 上对 issue 8112 的回复:
The id is not displayed in the frontend but if you open the
WebDeveloperTools
of a browser of your choice, go to
library
->secureFiles
and open/reload the page there is a request named
'securefiles' that returns a json containing the list of securefiles
and their ids.
作为测试,我通过快捷键F12
启用WebDeveloperTools,然后打开页面'securefiles',我可以在响应预览选项卡中获取GUID:
此外,我们还可以使用文件名而不是安全文件的 GUID。
在浏览器中查看安全文件时,如果展开 URL,它有一个查询参数“secureFileId”,它是您要查找的 GUID。
在 Azure Pipelines 中,您可以上传安全文件。下面我上传了一个.p12的证书文件。
然后,您可以使用 InstallAppleCertificate@2 任务引用此文件。如何获取文件唯一标识符的 GUID 值?我没有看到在哪里可以找到这个值。
How do you get the GUID value for the unique identifier of the file?
根据 github 上对 issue 8112 的回复:
The id is not displayed in the frontend but if you open the
WebDeveloperTools
of a browser of your choice, go tolibrary
->secureFiles
and open/reload the page there is a request named 'securefiles' that returns a json containing the list of securefiles and their ids.
作为测试,我通过快捷键F12
启用WebDeveloperTools,然后打开页面'securefiles',我可以在响应预览选项卡中获取GUID:
此外,我们还可以使用文件名而不是安全文件的 GUID。
在浏览器中查看安全文件时,如果展开 URL,它有一个查询参数“secureFileId”,它是您要查找的 GUID。