GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes a PUT request to upload or update a specific Conan package file in a GitLab project. It is useful for managing Conan packages within GitLab's package registry, allowing users to programmatically authorize file uploads for package versions, revisions, and specific files such as conanfile.py or conaninfo.txt.

Use Case Examples

  1. Automate the authorization of uploading a conaninfo.txt file for a specific Conan package version in a GitLab project.
  2. Integrate with CI/CD pipelines to manage Conan package files by authorizing uploads for package revisions and channels.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters required in the request path to identify the project and specific Conan package file to authorize.

Output

JSON

  • statusCode - HTTP status code returned by the API after the authorization request.
  • body - Response body from the API, typically containing authorization details or confirmation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to authorize package file uploads.
  • Check that the file_name parameter is one of the allowed enum values to avoid invalid file errors.
  • If authentication is skipped, ensure the endpoint allows unauthenticated access, otherwise the request will fail with authorization errors.

Links

Discussion