This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:git:gitlab:api:examples [2022/05/18 07:48] – mb | dev:git:gitlab:api:examples [2022/05/18 08:45] (current) – mb | ||
---|---|---|---|
Line 21: | Line 21: | ||
The project tags can be shown as well, see example below. \\ | The project tags can be shown as well, see example below. \\ | ||
{{ : | {{ : | ||
+ | <wrap hi> | ||
With this api call, all project tags as well as more information about the tag, like creation date and user. \\ | With this api call, all project tags as well as more information about the tag, like creation date and user. \\ | ||
==== 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. | ||
{{ : | {{ : |