This action requires a token for the user on whose behalf it will run.
StartGitlabPipeline — starts a pipeline in GitLab.
Request example
project_id: 0
ref: main
variables:
- key: example-key
value: example-valueRequest specification
| Name | Required | Description |
|---|---|---|
| project_id | Yes | Identifier of the project in which to run the pipeline |
| ref | Yes | Name of the branch or tag, or the commit SHA, on which the pipeline will run |
| variables | No | List of variables to pass to the pipeline being run |
| variables.key | Yes | Variable name |
| variables.value | Yes | Variable value |
Response
The action response is the object of the created GitLab pipeline with the id, iid, status, ref, web_url and other fields. Use the identifier {{ .response.id }} to track the pipeline status with the GetGitlabPipeline action.
Note
The action performs a POST request to the URL: /api/v4/projects/:id/pipeline.