GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to trigger a pipeline for a specific project. It is useful for automating CI/CD workflows by programmatically starting pipelines in GitLab projects. For example, it can be used to trigger a build or deployment pipeline after code changes are pushed.

Use Case Examples

  1. Trigger a pipeline for project ID 11 to start a CI/CD process automatically.
  2. Automate pipeline execution in GitLab projects as part of a larger workflow.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The project ID or URL-encoded path used to identify the project.
  • pipeline - The pipeline object created or triggered by the POST request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID is correctly provided in the path parameters; otherwise, the API call will fail.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to trigger pipelines.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion