summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-02-10 02:51:51 +0100
committerJohn Villalovos <john@sodarock.com>2022-02-10 10:21:30 -0800
commit5e711fdb747fb3dcde1f5879c64dfd37bf25f3c0 (patch)
treef525623d90b882b0238ee071e6ac81708b5274c6 /docs/gl_objects
parentc01c034169789e1d20fd27a0f39f4c3c3628a2bb (diff)
downloadgitlab-5e711fdb747fb3dcde1f5879c64dfd37bf25f3c0.tar.gz
docs: add delete methods for runners and project artifacts
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/pipelines_and_jobs.rst4
-rw-r--r--docs/gl_objects/runners.rst4
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/gl_objects/pipelines_and_jobs.rst b/docs/gl_objects/pipelines_and_jobs.rst
index ca802af..1628dc7 100644
--- a/docs/gl_objects/pipelines_and_jobs.rst
+++ b/docs/gl_objects/pipelines_and_jobs.rst
@@ -274,6 +274,10 @@ You can also directly stream the output into a file, and unzip it afterwards::
subprocess.run(["unzip", "-bo", zipfn])
os.unlink(zipfn)
+Delete all artifacts of a project that can be deleted::
+
+ project.artifacts.delete()
+
Get a single artifact file::
build_or_job.artifact('path/to/file')
diff --git a/docs/gl_objects/runners.rst b/docs/gl_objects/runners.rst
index 1919975..1a64c01 100644
--- a/docs/gl_objects/runners.rst
+++ b/docs/gl_objects/runners.rst
@@ -70,6 +70,10 @@ Remove a runner::
# or
runner.delete()
+Remove a runner by its authentication token::
+
+ gl.runners.delete(token="runner-auth-token")
+
Verify a registered runner token::
try: