We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4b1cc commit 5d973deCopy full SHA for 5d973de
docs/gl_objects/releases.rst
@@ -21,6 +21,7 @@ Examples
21
22
Get a list of releases from a project::
23
24
+ project = gl.projects.get(project_id, lazy=True)
25
release = project.releases.list()
26
27
Get a single release::
@@ -45,6 +46,14 @@ Delete a release::
45
46
# delete object directly
47
release.delete()
48
49
+.. note::
50
+
51
+ The Releases API is one of the few working with ``CI_JOB_TOKEN``, but the project can't
52
+ be fetched with the token. Thus use `lazy` for the project as in the above example.
53
54
+ Also be aware that most of the capabilities of the endpoint were not accessible with
55
+ ``CI_JOB_TOKEN`` until Gitlab version 14.5.
56
57
Project release links
58
=====================
59
0 commit comments