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 : String
","
( 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'
allowEmptyArchive : boolean
(optional)
caseSensitive : boolean
(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.
defaultExcludes : boolean
(optional)
excludes : String
(optional)
fingerprint : boolean
(optional)
followSymlinks : boolean
(optional)
onlyIfSuccessful : boolean
(optional)
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 : String
module/dist/**/*.zip
(see the @includes of Ant fileset for the exact format). The base directory is the workspace .
caseSensitive : boolean
(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.
defaultExcludes : boolean
(optional)
excludes : String
(optional)
synopsys_detect
: Synopsys DetectdetectProperties : String
The command line options to pass to Synopsys Detect
downloadStrategyOverride
(optional)
$class: 'AirGapDownloadStrategy'
airGapInstallationName : String
(optional)
$class: 'InheritFromGlobalDownloadStrategy'
$class: 'ScriptOrJarDownloadStrategy'
returnStatus : boolean
(optional)
If true (checked), returns the status code of the Detect run instead of throwing an exception
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.