Description #

The .tar.gz transformer is a simple archiving transformer that will add all source files to a single .tar.gz 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": [
      {
        "targz": {
          "filenamePattern": "<context.sourceName>-<context.now>.tar.gz"
        }
      }
    ]
  }
}

filenamePattern #

  • default value
  • template enabled

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

Default configuration #

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

Using just the "TARGZ" 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