summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2020-08-28 22:40:14 +0200
committerNejc Habjan <nejc.habjan@siemens.com>2020-08-28 22:59:34 +0200
commitd20f022a8fe29a6086d30aa7616aa1dac3e1bb17 (patch)
tree13df331cd802264071f570b29a47ab9ceda67dd2
parentb7a07fca775b278b1de7d5cb36c8421b7d9bebb7 (diff)
downloadgitlab-d20f022a8fe29a6086d30aa7616aa1dac3e1bb17.tar.gz
docs(api): add example for latest pipeline job artifacts
-rw-r--r--docs/gl_objects/pipelines_and_jobs.rst5
1 files changed, 5 insertions, 0 deletions
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.