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::
245245 build_or_job.artifacts()
246246
247247Get the artifacts of a job by its name from the latest successful pipeline of
248- a branch or tag:
248+ a branch or tag::
249249
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.
251256
252257.. warning ::
253258
@@ -275,7 +280,12 @@ Get a single artifact file::
275280
276281Get a single artifact file by branch and job::
277282
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.
279289
280290Mark a job artifact as kept when expiration is set::
281291
You can’t perform that action at this time.
0 commit comments