Archiving artifacts
Artifact is useful when you want to use an installable or distribution package in another project or build job. Normally, you create a different project to achieve a pipeline for end-to-end automation.
Getting ready
You need to have a project in Jenkins that creates a package file or distribution file, or any artifact that you want to utilize later from another project.
How to do it...
- Go to
Jenkins
dashboard | Jenkins project or build job |Post-build Actions
|Add post-build action
|Archive the artifacts
:

- You can wildcards, such as
module/dist/**/*.zip
. The artifact archiver usesAnt org.apache.tools.ant.DirectoryScanner
, which excludes the following patterns by default:**/%*%,**/.git/**,**/SCCS,**/.bzr,**/.hg/**,**/.bzrignore,**/.git,**/SCCS/**,**/.hg,**/.#*,**/vssver.scc,**/.bzr/**,**/._*,**/#*#,**/*~,**/CVS,**/.hgtags,**/.svn/**,**/.hgignore,**/.svn,**/.gitignore,**/.gitmodules,**/.hgsubstate,**/.gitattributes,**/CVS/**,**/.hgsub,**/.DS_Store,**/.cvsignore