diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2020-08-28 22:40:14 +0200 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2020-08-28 22:59:34 +0200 |
commit | d20f022a8fe29a6086d30aa7616aa1dac3e1bb17 (patch) | |
tree | 13df331cd802264071f570b29a47ab9ceda67dd2 | |
parent | b7a07fca775b278b1de7d5cb36c8421b7d9bebb7 (diff) | |
download | gitlab-d20f022a8fe29a6086d30aa7616aa1dac3e1bb17.tar.gz |
docs(api): add example for latest pipeline job artifacts
-rw-r--r-- | docs/gl_objects/pipelines_and_jobs.rst | 5 |
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. |