我在 Azure DevOps 中使用自定义代理池。我已经构建并发布了工件,但我想更新工件中的文件而不创建新的构建。我们如何在 Publish Artifacts
任务中做到这一点,它显示将 /home/ubuntu/myagent/_work/4/a
上传到文件容器:#/9464/工件名称
.
我已登录到代理池服务器并检查了所有目录,但找不到文件容器位置。有哪位小伙伴可以帮我找到Artifact在代理池中的位置吗?
提前致谢。
最佳答案
根据您的转换位置,您可能不能。我认为这可能的唯一方法是如果您改为发布到共享位置。
当您发布工件(从构建摘要中可见)时,这些工件将存储在 Azure DevOps 数据库内容表中并且是不可变的。正如Jane Ma 在关于本地文件的评论中提到的:
The directory referenced by $(Build.ArtifactStagingDirectory) is cleaned up after each build. [...] you can't edit published artifacts. You can get them in agent pool's local file, but all local operations are not synced to the Azure DevOps. If you want to do follow-up work on this artifact, you need to run a new build to update it.
关于azure - 在 Azure DevOps 自定义代理池中哪里可以找到工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64047464/