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
+31-15Lines changed: 31 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ steps:
31
31
- command: ...
32
32
plugins:
33
33
- artifacts#v1.9.4:
34
-
upload:
34
+
upload:
35
35
- from: log1.log
36
36
to: log2.log
37
37
```
@@ -91,7 +91,7 @@ steps:
91
91
- command: ...
92
92
plugins:
93
93
- artifacts#v1.9.4:
94
-
download:
94
+
download:
95
95
- from: log1.log
96
96
to: log2.log
97
97
```
@@ -105,7 +105,7 @@ steps:
105
105
- artifacts#v1.9.4:
106
106
step: UUID-DEFAULT
107
107
build: UUID-DEFAULT-2
108
-
download:
108
+
download:
109
109
- from: log1.log
110
110
to: log2.log
111
111
step: UUID-1
@@ -114,25 +114,25 @@ steps:
114
114
build: UUID-2
115
115
```
116
116
117
-
## Configuration
117
+
## Mandatory Configuration
118
118
119
-
### `upload` (string, array of strings, {from,to}, array of {from,to})
120
-
121
-
A glob pattern, or array of glob patterns, for files to upload.
119
+
You must specify at least one of the following
122
120
123
121
### `download` (string, array of strings, {from,to}, array of {from,to[,step][,build]})
124
122
125
-
A glob pattern, or array of glob patterns, for files to download.
123
+
A glob pattern, or array of glob patterns, for files to download. Alternatively you can specify `from` and `to` to rename the artifact after downloading. If you do so, you can also specify `step` and/or `build` to override those options for that particular artifact.
124
+
125
+
### `upload` (string, array of strings, {from,to}, array of {from,to})
126
126
127
-
### `step` (optional, string)
127
+
A glob pattern, or array of glob patterns, for files to upload as-is. Alternatively, you can specify `from` and `to` to rename the artifact before uploading.
128
128
129
-
The job UUID or name to download the artifacts from unless specified otherwise in the `download` array specification.
129
+
## Other Configuration
130
130
131
-
### `build` (optional, string)
131
+
### `build` (string, download only)
132
132
133
-
The build UUID to download the artifact from unless specificed otherwise in the `download` array specification.
133
+
The build UUID to download all artifacts from. Note that you can override it for specific artifacts when using the verbose format of the `download` element.
134
134
135
-
### `compressed` (optional, string)
135
+
### `compressed` (string)
136
136
137
137
⚠️ Limitations:
138
138
* filename needs to end with `.zip` or `.tgz` and that will determine the compression executable to use
When set to true, it will activate interpolation of variables in the elements of the `download` path-related configurations as well as `compressed` option if present. When turned off (the default), attempting to use variables will fail as the literal `$VARIABLE_NAME` string will be used.
167
+
168
+
⚠️ Important: this is considered an unsafe option as the most compatible way to achieve this is to run the strings through `eval` which could lead to arbitrary code execution or information leaking if you don't have complete control of the pipeline.
When set to true, it will activate interpolation of variables in the elements of the `upload` path-related configurations as well as `compressed` option if present. When turned off (the default), attempting to use variables will fail as the literal `$VARIABLE_NAME` string will be used.
173
+
174
+
⚠️ Important: this is considered an unsafe option as the most compatible way to achieve this is to run the strings through `eval` which could lead to arbitrary code execution or information leaking if you don't have complete control of the pipeline.
175
+
176
+
### `ignore-missing` (boolean)
165
177
166
178
If set to `true`, it will ignore errors caused when calling `buildkite-agent artifact` to prevent failures if you expect artifacts not to be present in some situations. When using the `compressed` property, it will ignore compressing the artifacts that are not present.
167
179
168
-
### `skip-on-status` (optional, integer or array of integers, uploads only)
180
+
### `skip-on-status` (integer or array of integers, upload only)
169
181
170
182
You can set this to the exit codes or array of exit codes of the command step (as defined by the `BUILDKITE_COMMAND_EXIT_STATUS` variable) that will cause the plugin to avoid trying to upload artifacts.
171
183
@@ -195,6 +207,10 @@ steps:
195
207
- 5
196
208
```
197
209
210
+
### `step` (string, download only)
211
+
212
+
The job UUID or name to download all artifacts from. Note that you can override it for specific artifacts when using the verbose format of the `download` element.
213
+
198
214
## Developing
199
215
200
216
To run testing, shellchecks and plugin linting use use `bk run` with the [Buildkite CLI](https://github.com/buildkite/cli).
0 commit comments