The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
archiveArtifacts
: Archive the artifactsarchiveArtifacts artifacts: '**/*.txt',
allowEmptyArchive: true,
fingerprint: true,
onlyIfSuccessful: true
artifacts
","
(comma) is the only supported separator. The base directory is the workspace. You can only archive files that are located in your workspace.
Here are some examples of usage for pipeline:
archiveArtifacts artifacts: 'target/*.jar'
archiveArtifacts artifacts: 'target/*.jar, target/*.war'
archiveArtifacts artifacts: '**/*.jar'
String
allowEmptyArchive
(optional)
boolean
caseSensitive
(optional)
org.apache.tools.ant.DirectoryScanner
which by default is case sensitive. For instance, if the job produces *.hpi files, pattern "**/*.HPI" will fail to find them.
boolean
defaultExcludes
(optional)
boolean
excludes
(optional)
String
fingerprint
(optional)
boolean
followSymlinks
(optional)
boolean
onlyIfSuccessful
(optional)
boolean
fingerprint
: Record fingerprints of files to track usagefoo.jar
on my HDD but which build number of FOO did it come from? foo.jar
from the FOO project. foo.jar
is used in BAR #51? foo.jar
#32? To use this feature, all of the involved projects (not just the project in which a file is produced, but also the projects in which the file is used) need to use this and record fingerprints.
See this document for more details.
targets
module/dist/**/*.zip
(see the @includes of Ant fileset for the exact format). The base directory is the workspace.
String
caseSensitive
(optional)
org.apache.tools.ant.DirectoryScanner
which by default is case sensitive. For instance, if the job produces *.hpi files, pattern "**/*.HPI" will fail to find them.
boolean
defaultExcludes
(optional)
boolean
excludes
(optional)
String
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.