From d20f022a8fe29a6086d30aa7616aa1dac3e1bb17 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Fri, 28 Aug 2020 22:40:14 +0200 Subject: docs(api): add example for latest pipeline job artifacts --- docs/gl_objects/pipelines_and_jobs.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/gl_objects') diff --git a/docs/gl_objects/pipelines_and_jobs.rst b/docs/gl_objects/pipelines_and_jobs.rst index 7faf657..eb9e23a 100644 --- a/docs/gl_objects/pipelines_and_jobs.rst +++ b/docs/gl_objects/pipelines_and_jobs.rst @@ -292,6 +292,11 @@ Get the artifacts of a job:: build_or_job.artifacts() +Get the artifacts of a job by its name from the latest successful pipeline of +a branch or tag: + + project.artifacts(ref_name='master', job='build') + .. warning:: Artifacts are entirely stored in memory in this example. -- cgit v1.2.1