GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates the TeamCity integration settings for a specific GitLab project. It is useful for automating the configuration of TeamCity CI/CD integration within GitLab projects, allowing users to programmatically manage integration settings such as enabling or disabling the integration, setting URLs, tokens, and other parameters.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID for this operation.

Output

JSON

  • id - The ID of the project for which the TeamCity integration is updated.
  • integrationStatus - Status or result of the TeamCity 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 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). Resolving these involves correcting credentials, project ID, or request payload respectively.

Links

Discussion