GitLab API

GitlabTool

Actions905

Overview

This node operation triggers the execution of a specific pipeline schedule for a project in GitLab. It is useful for automating the running of predefined pipeline schedules without manual intervention. For example, a user can programmatically start a pipeline schedule to test or deploy code at specific times or events.

Use Case Examples

  1. Trigger a pipeline schedule to run a CI/CD pipeline for project ID 18 and pipeline schedule ID 13.
  2. Automate the execution of scheduled pipelines in GitLab projects via n8n workflows.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to POST.
Path Parameters Parameters to specify the project ID and pipeline schedule ID for the API endpoint.

Output

JSON

  • response - The JSON response from GitLab API after triggering the pipeline schedule play action.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and pipeline schedule ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API key has sufficient permissions to trigger pipeline schedules.
  • Check network connectivity and base URL correctness if requests fail.

Links

Discussion