Skip to content

Commit 64d01ef

Browse files
nejchJohnVillalovos
authored andcommitted
docs(artifacts): deprecate artifacts() and artifact() methods
1 parent 700d25d commit 64d01ef

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/gl_objects/pipelines_and_jobs.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,14 @@ Get the artifacts of a job::
245245
build_or_job.artifacts()
246246

247247
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::
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

276281
Get 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

280290
Mark a job artifact as kept when expiration is set::
281291

0 commit comments

Comments
 (0)