From 5e711fdb747fb3dcde1f5879c64dfd37bf25f3c0 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Thu, 10 Feb 2022 02:51:51 +0100 Subject: docs: add delete methods for runners and project artifacts --- docs/gl_objects/pipelines_and_jobs.rst | 4 ++++ docs/gl_objects/runners.rst | 4 ++++ 2 files changed, 8 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 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: -- cgit v1.2.1