8000
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 16de1b0 commit 252c313Copy full SHA for 252c313
docs/gl_objects/builds.rst
@@ -94,6 +94,16 @@ Full example with wait for finish::
94
pipeline.refresh()
95
time.sleep(1)
96
97
+You can trigger a pipeline using a token authentication instead of user
98
+authentication. To do so create an anonymous Gitlab instance and use lazy
99
+objects to get the associated project::
100
+
101
+ gl = gitlab.Gitlab(URL) # no authentication
102
+ project = gl.projects.get(project_id, lazy=True) # no API call
103
+ project.trigger_pipeline('master', trigger_token)
104
105
+Reference: https://docs.gitlab.com/ee/ci/triggers/#trigger-token
106
107
Pipeline schedule
108
=================
109
0 commit comments