Upload File Spec Schema

JFrog Integrations Documentation

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

Where:

Element

Description

pattern

[Mandatory]

Specifies the local file system path to artifacts which 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 characters (such as ".", "?", etc.) used in the expression using a backslash "\".

target

[Mandatory]

Specifies the target path in Artifactory in the following format: [repository_name]/[repository_path]

If the pattern ends with a slash, for example "repo-name/a/b/", then "b" is assumed to be a folder in Artifactory and the files are uploaded into it. In the case of "repo-name/a/b", the uploaded file is renamed to "b" in Artifactory.

For flexibility in specifying the upload path, you can include placeholders in the form of {1}, {2}, {3}...which are replaced by corresponding tokens in the source path that are enclosed in parentheses, For more details, please refer to Using Placeholders.

props

[Optional]

List of "key=value" pairs separated by a semi-colon ( ; ) to be attached as properties to the uploaded properties. If any key can take several values, then each value is separated by a comma ( , ). For example, "key1=value1;key2=value21,value22;key3=value3".

flat

[Default: true]

If true, artifacts are uploaded to the exact target path specified and their hierarchy in the source file system is ignored.

If false, artifacts are uploaded to the target path while maintaining their file system hierarchy.

recursive

[Default: true]

If true, artifacts are also collected from sub-directories of the source directory for upload.

If false, only artifacts specifically in the source directory are uploaded.

regexp

[Default: false]

If true, the command will interpret the pattern property, which describes the local file-system path of artifacts to upload, as a regular expression.

If false, the command will interpret the pattern property as a wild-card expression.

explode

[Default: false]

If true, the uploaded archive file is extracted after it is uploaded. The archived file itself is not saved in Artifactory. The supported archive types are: zip, tar; tar.gz; and tgz

excludePatterns

[Optional]

An array (enclosed with square brackets) of patterns to be excluded from uploading.

Allows using wildcards or a regular expression as designated by the regexp property. If you use a regexp, you need to escape any reserved characters (such as ".", "?", etc.) used in the expression using a backslash "\". For example: ["*.sha1","*.md5"]