“归档工件"究竟是做什么的?步骤在詹金斯做什么? [英] what exactly does "archive artifacts" step do in Jenkins?
问题描述
我有一个 Jenkins 主服务器和多台从属机器,这些机器一直被创建和销毁.
I have a Jenkins master server plus multiple slave machines that get created and destroyed all the time.
我找不到任何关于归档工件"选项在 Jenkins 工作中究竟有什么作用的文档.
I could not find any documentation on what exactly "archive artifacts" option does in a Jenkins job.
它是否将工件从从机的工作区复制到主服务器上的某个文件夹?
does it copy artifacts from slave machine's workspace to some folder on master server?
或者它是否将文件从从属的工作区保存到同一个从属的存档"位置?在这种情况下,如果从服务器被破坏,那些文件就会消失.
or does it save files from the slave's workspace to the same slave's "archive" location? in this case if the slave server is destroyed, those files would be gone.
如果我删除工作区,那些存档的工件会保留吗?
if I delete the workspace, will those archived artifacts survive?
如果我删除构建历史,它们会存活吗?
if I delete builds history, will they survive?
等
推荐答案
如果您在谈论归档工件"构建后步骤,它会复制 %JENKINS_HOME%/jobs/MY_JOB 中的选定工件/builds/...
在主服务器上.
If you are talking about the "Archive the artifacts" post-build step, it copies the selected artifacts in the %JENKINS_HOME%/jobs/MY_JOB/builds/...
on the master server.
因此,如果您删除您的从属设备或擦除您的工作区,您将不会丢失您的工件.
So if you delete your slave or if you wipe your workspace, you won't lose your artifacts.
但是,如果您删除构建或丢弃旧构建,则会删除工件.
But if you delete a build or if you discard the old builds, you will remove the artifacts.
我希望它有帮助:)
这篇关于“归档工件"究竟是做什么的?步骤在詹金斯做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!