Pipeline code to download binaries from Artifactory

To download the build artifacts from Artifactory, we will use the File Specs. The File Specs code looks as follows:

"files": [    {      "pattern": "[Mandatory]",      "target": "[Mandatory]",      "props": "[Optional]",      "recursive": "[Optional, Default: 'true']",      "flat" : "[Optional, Default: 'true']",      "regexp": "[Optional, Default: 'false']"    }  ]

The following table describes the various parameters used:

Parameters

Description

pattern

[Mandatory]

Specifies the local filesystem path to artifacts that should be uploaded to Artifactory. You can specify multiple artifacts by using wildcards or a regular expression as designated by the regexp property. If you use a regexp, you need to escape any reserved ...

Get Learning Continuous Integration with Jenkins - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.