File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,14 @@ Get the artifacts of a job::
245
245
build_or_job.artifacts()
246
246
247
247
Get the artifacts of a job by its name from the latest successful pipeline of
248
- a branch or tag:
248
+ a branch or tag::
249
249
250
- project.artifacts(ref_name='main', job='build')
250
+ project.artifacts.download(ref_name='main', job='build')
251
+
252
+ .. attention ::
253
+
254
+ An older method ``project.artifacts() `` is deprecated and will be
255
+ removed in a future version.
251
256
252
257
.. warning ::
253
258
@@ -275,7 +280,12 @@ Get a single artifact file::
275
280
276
281
Get a single artifact file by branch and job::
277
282
278
- project.artifact('branch', 'path/to/file', 'job')
283
+ project.artifacts.raw('branch', 'path/to/file', 'job')
284
+
285
+ .. attention ::
286
+
287
+ An older method ``project.artifact() `` is deprecated and will be
288
+ removed in a future version.
279
289
280
290
Mark a job artifact as kept when expiration is set::
281
291
You can’t perform that action at this time.
0 commit comments