GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation uploads a specific file related to a Conan package to a GitLab instance using the GitLab API. It is designed for managing Conan packages in GitLab's package registry, allowing users to update or add files such as conanfile.py, conanmanifest.txt, or conaninfo.txt for a given package version and revision. This is useful in CI/CD pipelines or automation workflows where package files need to be programmatically managed within GitLab.

Use Case Examples

  1. Uploading a new conaninfo.txt file for a specific Conan package version to GitLab.
  2. Updating the conanfile.py for a package revision in an automated build process.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, which is PUT for this operation.
Path Parameters Parameters required in the URL path to identify the specific Conan package and file to upload.

Output

JSON

  • statusCode - HTTP status code of the API response.
  • body - The response body from the GitLab API after uploading the file.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and match the package details in GitLab.
  • Verify that the authentication token has sufficient permissions to upload package files.
  • Check that the file name is one of the allowed values (e.g., conanfile.py, conaninfo.txt).
  • If receiving 404 errors, confirm the package and revision exist in the GitLab instance.

Links

Discussion