title | description | ms.topic | ms.assetid | ms.custom | ms.date | monikerRange |
---|---|---|---|---|---|---|
Archive Files task |
Use an archive file to then create a source folder in Azure Pipelines and Team Foundation Server (TFS) |
reference |
9D2AE683-E116-4CEA-B673-CD7BEFB8F415 |
seodec18 |
02/10/2020 |
<= azure-devops |
[!INCLUDE version-lt-eq-azure-devops]
Use this task to create an archive file from a source folder. A range of standard archive formats are supported including .zip, .jar, .war, .ear, .tar, .7z, and more.
None
::: moniker range="> tfs-2018"
[!INCLUDE temp]
::: moniker-end
Argument | Description |
---|---|
rootFolderOrFile Root folder or file to archive |
(Required) Enter the root folder or file path to add to the archive. If a folder, everything under the folder will be added to the resulting archive Default value: $(Build.BinariesDirectory) |
includeRootFolder Prepend root folder name to archive paths |
(Required) If selected, the root folder name will be prefixed to file paths within the archive. Otherwise, all file paths will start one level lower. For example, suppose the selected root folder is: /home/user/output/classes/ , and contains: com/acme/Main.class .
|
archiveType Archive type |
(Required) Specify the compression scheme used. To create foo.jar , for example, choose zip for the compression, and specify foo.jar as the archive file to create. For all tar files (including compressed ones), choose tar .
|
sevenZipCompression 7z compression |
Optionally choose a compression level, or choose None to create an uncompressed 7z file Default value: Normal Options:
|
tarCompression Tar compression |
Optionally choose a compression scheme, or choose None to create an uncompressed tar file.
Default value: gz |
archiveFile Archive file to create |
(Required) Specify the name of the archive file to create. For example, to create foo.tgz , select the tar archive type and gz for tar compression. Default value: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip |
replaceExistingArchive Replace existing archive |
(Required) If an existing archive exists, specify whether to overwrite it. Otherwise, files will be added to it as long as it is not a compressed tar. If adding to an existing archive, these types are supported:
|
verbose Forces verbose output |
(Optional) If set to true, forces tools to use verbose output. Overrides 'quiet'. Default value: false |
quiet Forces quiet output |
(Optional) If set to true, forces tools to use quiet output. Can be overridden by 'verbose'. Default value: false |
This task is open source on GitHub. Feedback and contributions are welcome.
[!INCLUDE temp]
[!INCLUDE temp]
::: moniker range="< azure-devops"
[!INCLUDE temp]
::: moniker-end