This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dev:git:gitlab:api:examples [2022/05/18 08:12] – mb | dev:git:gitlab:api:examples [2022/05/18 08:45] (current) – mb | ||
---|---|---|---|
Line 25: | Line 25: | ||
==== Trigger a pipeline via API ==== | ==== Trigger a pipeline via API ==== | ||
First go to project settings -> " | First go to project settings -> " | ||
- | After enabling pipeline triggers for a project the given token is used as variable in the trigger request. \\ As you can see after creating this token, cURL examples | + | After enabling pipeline triggers for a project the given token is used as variable in the trigger request. Unlike previous used api calls, a <wrap hi> |
+ | As you can see after creating this token, cURL examples | ||
\\ {{ : | \\ {{ : | ||
With Postman we also have a better overview about the sent variables. These can also be seen in the created pipeline, as seen below. \\ | With Postman we also have a better overview about the sent variables. These can also be seen in the created pipeline, as seen below. \\ | ||
It is also possible to overwrite Gitlab CI variables, these are only set in this running job. | It is also possible to overwrite Gitlab CI variables, these are only set in this running job. | ||
{{ : | {{ : |