GitLab API

GitlabTool

Actions905

Overview

This node operation updates the Jenkins integration settings for a specific GitLab project by sending a PUT request to the GitLab API endpoint `/api/v4/projects/{id}/integrations/jenkins`. It is useful for automating the configuration of Jenkins CI/CD integration within GitLab projects, allowing users to programmatically manage Jenkins integration parameters.

Use Case Examples

  1. Automatically update Jenkins integration settings for a GitLab project when project details change.
  2. Enable or disable Jenkins integration for multiple projects in bulk via workflow automation.

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, default is PUT for this operation.
Path Parameters Parameters to specify the project ID in the API path.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Jenkins integration.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is valid and accessible with the authenticated user.
  • Verify that the GitLab API base URL is correct and reachable.
  • Check that the API key credential has sufficient permissions to update project integrations.
  • Common errors include 401 Unauthorized (invalid or missing API key), 404 Not Found (invalid project ID), and 400 Bad Request (invalid request body).

Links

Discussion