GitLab API

GitlabTool

Actions905

Overview

This node operation authorizes a NuGet symbol package for a specific project in GitLab using the GitLab API. It is useful for automating the authorization of symbol packages in CI/CD pipelines or project management workflows within GitLab. For example, it can be used to programmatically authorize symbol packages for debugging purposes in a .NET project hosted on GitLab.

Use Case Examples

  1. Authorize a NuGet symbol package for project ID 123 to enable symbol server support in GitLab.
  2. Automate symbol package authorization as part of a deployment pipeline.

Properties

Name Meaning
Skip Authentication If true, the node will skip authenticating the request to GitLab.
Authentication The authentication method used for the GitLab API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to PUT.
Parameter Schema Defines the path parameter 'id' which is the ID or URL-encoded path of the project to authorize the NuGet symbol package for.
Request Body Schema Schema for the request body, if applicable (not defined here).
Request Path The API endpoint path for authorizing the NuGet symbol package, with a placeholder for the project ID.
Path Parameters Collection of path parameters including 'id' which specifies the project ID or URL-encoded path.

Output

JSON

  • response - The JSON response from the GitLab API after authorizing the NuGet symbol package.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Verify that the GitLab API key credential has sufficient permissions to authorize NuGet symbol packages for the project.
  • Check the baseUrl to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • Common error messages may include 401 Unauthorized if authentication fails, or 404 Not Found if the project ID is invalid or the endpoint is incorrect.

Links

Discussion