Description #

The .zip transformer is a simple archiving transformer that will add all source files to a single .zip archive file.

The original directory structure of the source files will be preserved inside the archive.

Configuration #

Available configuration options #

{
  "sources": {
    "name": "some-source",
    // ...
    "transformers": [
      {
        "zip": {
          "filenamePattern": "<context.sourceName>-<context.now>.zip"
        }
      }
    ]
  }
}

filenamePattern #

  • default value
  • template enabled

Pattern to be used as filename for the created zip file. Supports templating with context. Defaults to "<context.sourceName>-<context.now>.zip".

Default configuration #

{
  "sources": {
    "name": "some-source",
    // ...
    "transformers": [
      "ZIP"
    ]
  }
}

Using just the "ZIP" constant in the "transformers" array will use the default transformer configuration (shown above).

Context #

The field templating context extends the default context with additional values:

Variable Description
context.sourceName Name of current source