Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

what exactly does "archive artifacts" step do in Jenkins?

I have a Jenkins master server plus multiple slave machines that get created and destroyed all the time.

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?

etc

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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 :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

62 comments

56.5k users

...