Skip to content

Commit d20f022

Browse files
committed
docs(api): add example for latest pipeline job artifacts
1 parent b7a07fc commit d20f022

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/gl_objects/pipelines_and_jobs.rst

+5
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ Get the artifacts of a job::
292292

293293
build_or_job.artifacts()
294294

295+
Get the artifacts of a job by its name from the latest successful pipeline of
296+
a branch or tag:
297+
298+
project.artifacts(ref_name='master', job='build')
299+
295300
.. warning::
296301

297302
Artifacts are entirely stored in memory in this example.

0 commit comments

Comments
 (0)