本文介绍了“存档工件"到底是做什么的?在詹金斯一步吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台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.

我希望它会有所帮助:)

I hope it helps :)

这篇关于“存档工件"到底是做什么的?在詹金斯一步吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 23:56