GitLab API

GitlabTool

Actions905

Overview

This node operation allows importing projects from a Bitbucket Server into GitLab using the GitLab API. It is useful for automating the migration of repositories from Bitbucket Server to GitLab, facilitating seamless project transfers without manual intervention. For example, a DevOps engineer can use this node to programmatically import multiple Bitbucket Server projects into GitLab as part of a migration workflow.

Use Case Examples

  1. Automate migration of Bitbucket Server repositories to GitLab.
  2. Integrate Bitbucket Server project import into CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the import request is sent.
Method HTTP method used for the API request, default is POST for this operation.
Parameter Schema Defines the schema for the request body parameters required by the import API.
Request Body Schema Schema for the request body content, typically containing import details.
Request Path The API endpoint path for importing from Bitbucket Server.

Output

JSON

  • id - The unique identifier of the imported project.
  • name - The name of the imported project.
  • path - The repository path of the imported project.
  • import_status - Status of the import process (e.g., 'started', 'finished', 'failed').
  • import_error - Error message if the import failed.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab base URL is correct and accessible.
  • Verify that the API key has sufficient permissions to perform project imports.
  • Check the request body schema matches the expected format for the Bitbucket Server import API.
  • Common errors include authentication failures, invalid request body, or network connectivity issues.

Links

Discussion