GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to post evidence for a specific release associated with a Git tag in a GitLab project. It is useful for automating the process of adding evidence to releases, which can help in release management and documentation within GitLab projects. For example, a user can automate attaching release notes or other relevant evidence to a release identified by a tag name and project ID.

Use Case Examples

  1. Automate adding release evidence after a deployment pipeline completes.
  2. Attach documentation or release notes to a specific release in a GitLab project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The 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 POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters for the API path including the Git tag name and project ID.

Output

JSON

  • statusCode - HTTP status code of the response.
  • body - Response body containing the result of posting release evidence.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and tag name are correct and exist in the GitLab project.
  • Verify that the authentication token has sufficient permissions to post release evidence.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the project or tag does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion