GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows importing projects from 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 user can trigger this node to import a Bitbucket Server project into GitLab as part of a CI/CD pipeline or migration workflow.

Use Case Examples

  1. Automate migration of Bitbucket Server repositories to GitLab.
  2. Integrate project import into a DevOps pipeline for continuous integration.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, with options including GET, POST, PUT, DELETE, HEAD, and PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body for the import operation.
Request Body Schema Defines the schema for the request body content for the import operation.
Request Path The API endpoint path for importing a Bitbucket Server project into GitLab, fixed as /api/v4/import/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 - The status of the import process.
  • created_at - Timestamp when the project was created in GitLab.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is valid and has sufficient permissions to perform project imports.
  • Verify the baseUrl is correctly set to the target GitLab instance URL.
  • Check that the request body conforms to the expected schema for importing Bitbucket Server projects.
  • Common error messages may include authentication failures, invalid request body format, or permission denied errors. Resolving these typically involves verifying credentials, request payload, and user permissions.

Links

Discussion