GitLab API

GitlabTool

Actions1000

Overview

This node operation updates the Jenkins service integration settings for a specific GitLab project. It is useful for automating the configuration of Jenkins CI/CD integration within GitLab projects, allowing users to programmatically modify Jenkins service parameters such as enabling/disabling the service or updating connection details.

Use Case Examples

  1. Automatically update Jenkins integration settings for a project when a new project is created.
  2. Modify Jenkins service parameters as part of a CI/CD pipeline setup automation.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET but for this operation it is PUT.
Path Parameters Parameters included in the API request path, specifically the project ID to identify which project's Jenkins service to update.

Output

JSON

  • id - The ID of the GitLab project for which the Jenkins service integration is updated.
  • serviceDetails - Details of the Jenkins service configuration after the update, including any changed settings.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used has sufficient permissions to update project service integrations.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common error messages include 401 Unauthorized (invalid or missing API key), 404 Not Found (invalid project ID), and 400 Bad Request (invalid request body or parameters). Resolving these involves correcting credentials, project ID, or request data format.

Discussion