Introduction
When you run a build in Jenkins, you often create files like reports or compiled programs. Archiving artifacts means saving these files so you can look at them later or use them in other steps.
When you want to keep test reports after a build finishes to check results.
When you need to save compiled programs so they can be downloaded or used in deployment.
When you want to keep logs or output files from a build for troubleshooting.
When you want to share build outputs with your team without rerunning the build.
When you want to keep a history of important files from each build for auditing.