You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,29 +134,30 @@ The build UUID to download the artifact from unless specificed otherwise in the
134
134
135
135
### `compressed` (optional, string)
136
136
137
-
Limitations:
137
+
⚠️ Limitations:
138
138
* filename needs to end with `.zip` or `.tgz` and that will determine the compression executable to use
139
-
* path globs (`*`) are interpreted by agent's shell and (un)compressing program (meaning that probably `**` will not work)
139
+
* path globs (`*`) are interpreted by agent's shell and (un)compressing program, meaning that `*` and `**` will not work.
140
+
141
+
When uploading, the file or directory specified in the `upload` option will be compressed in a single file with this name and uploaded as a single artifact. The following example will get the directory matching `log/my-folder`, zip them up and upload a single artifact file named `logs.zip`:
140
142
141
-
When uploading, globs specified in the `upload` option will be compressed in a single file with this name and uploaded as a single artifact. The following example will get all files matching `log/*.log`, zip them up and upload a single artifact file named `logs.zip`:
142
143
143
144
```yml
144
145
steps:
145
146
- command: ...
146
147
plugins:
147
148
- artifacts#v1.9.0:
148
-
upload: "log/*.log"
149
+
upload: "log/my-folder"
149
150
compressed: logs.zip
150
151
```
151
152
152
-
When downloading, this option states the actual name of the artifact to be downloaded and globs in the `download` option will be extracted off of it. The following example will download the `logs.tgz` artifact and extract all files in it matching `log/*.log`:
153
+
When downloading, this option states the actual name of the artifact to be downloaded in the `download` option will be extracted off of it. The following example will download the `logs.tgz` artifact and extract all files in it matching `log/file.log`:
0 commit comments