GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates the Drone CI integration settings for a specific GitLab project. It is useful for automating the configuration of continuous integration pipelines in GitLab projects by programmatically modifying the Drone CI integration via the GitLab API. For example, it can be used in DevOps workflows to enable or update Drone CI integration settings for multiple projects without manual intervention.

Use Case Examples

  1. Updating Drone CI integration settings for a GitLab project with ID 12345 to enable or modify CI/CD pipelines.
  2. Automating the configuration of Drone CI integration across multiple GitLab projects in an organization.

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 The HTTP method to use for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters to specify the project ID in the API path for the integration update.

Output

JSON

  • id - The ID of the GitLab project for which the Drone CI integration was updated.
  • integrationStatus - The status or result of the Drone CI integration update operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to update project integrations.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include authentication failures, invalid project ID, or insufficient permissions. Resolving these typically involves verifying credentials, project existence, and user permissions.

Links

Discussion