Step: archive¶
Step that puts file from previous step to an archive file (ZIP or TAR).
Input¶
Any input file provided from the previous step.
Output¶
ZIP or TAR archive (based on options) containing the file from the
previous step.
Options¶
inputFileDst= destination of the file inside the archive (POSIX-like path including filename)(optional)
type= whether to produceziportar(defaults tozip)(optional)
compression= compression method to be used (none,gzip,bzip2,lzma; defaults tonone)(optional)
compressionLevel= value specifying level of compression (0to9; defaults to9)(optional)
format= only fortarit allows to specify format (ustar,gnu,pax; defaults topax)
Notes¶
Currently, only a single file can be put into the produced archive.
Value of
compressionLevelmust be provided as a string (even though it is a numeric value).For
zip, zipfile standard library from Python is used.For
tar, tarfile standard library from Python is used.For
bzip2, ifcompressionLevelis set to0, it is automatically fixed to value1.
Example¶
{
"name": "archive",
"options": {
"type": "tar",
"compression": "bzip2",
"compressionLevel": "5",
"format": "gnu",
"inputFileDst": "example/file.html"
}
}