简体   繁体   English

VSTS 与安全文件的持续集成

[英]VSTS Continuous Integration with secure files

Hello Stackoverflowers,你好 Stackoverflowers,

I have been playing lately alot with the CI-CD on VSTS with GIT.我最近在 VSTS 和 GIT 上玩了很多 CI-CD。 I have a set of Build tasks which refer to secure files.我有一组参考安全文件的构建任务。 I use the „Download Secure File“ task to access these files at build time.我使用“下载安全文件”任务在构建时访问这些文件。 However, I was wondering if there is a way to commit these files or at least automatically update them from my dev environment.但是,我想知道是否有办法提交这些文件或至少从我的开发环境中自动更新它们。 For now, these files need to be uploaded manually, which is wrong.目前,这些文件需要手动上传,这是错误的。 Thanks谢谢

For now, there is no way to update secure files automatically.目前,无法自动更新安全文件。 You need to upload the secure files manually.您需要手动上传安全文件。

While when uploading a secure file name which already exists, you need to deleted the existing one and add the new one with the same name.而在上传已经存在的安全文件名时,需要删除现有的文件并添加同名的新文件。

And there has the user voice Allow us to update an existing Secure File instead of having to delete and re-upload which suggests this feature, you can vote and follow up.并且有用户声音允许我们更新现有的安全文件,而不必删除和重新上传这表明此功能,您可以投票和跟进。

You can use API to delete and upload secure file in library.您可以使用 API 删除和上传库中的安全文件。

For secure file delete use PUT API对于安全文件删除使用PUT API
https://dev.azure.com/{organization}/{project}/_apis/distributedtask/securefiles/{secureFileID}?api-version=5.0-preview.1 https://dev.azure.com/{organization}/{project}/_apis/distributedtask/securefiles/{secureFileID}?api-version=5.0-preview.1

And for secure file upload use POST API https://dev.azure.com/{organization}/{project}/_apis/distributedtask/securefiles?name={fileName}&api-version=5.0-preview.1对于安全文件上传使用POST API https://dev.azure.com/{organization}/{project}/_apis/distributedtask/securefiles?name={fileName}&api-version=5.0-preview.1

Content-Type=application/octet-stream内容类型=应用程序/八位字节流

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM