1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/gitlab-set-status/0.2
rudeigerc a670d0b80d Add version 0.2 to gitlab-set-status task
Signed-off-by: rudeigerc <rudeigerc@gmail.com>
2023-07-22 05:26:01 +01:00
..
tests Add version 0.2 to gitlab-set-status task 2023-07-22 05:26:01 +01:00
gitlab-set-status.yaml Add version 0.2 to gitlab-set-status task 2023-07-22 05:26:01 +01:00
README.md Add version 0.2 to gitlab-set-status task 2023-07-22 05:26:01 +01:00

GitLab Set Status

GitLab Set Status is part of a collection of GitLab tasks to help working with the GitLab API.

Set Status on a Commit/MR

The gitlab-set-status task uses the commit api to mark GitLab commits with a pending,running, success, failed, or canceled state, which is then reflected in merge requests involving those commits.

Statuses include as well a description, a target_url and a coverage, to give the user informations about the CI statuses or a direct link to the full log.

Install the Task

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/gitlab-set-status/0.2/raw

Parameters

  • STATE (string): The state of the status. Can be one of the following pending, running, success, failed, or canceled.
  • GITLAB_TOKEN_SECRET_NAME (string, optional): The name of the kubernetes secret that contains the GitLab access token. default: gitlab-api-secret
  • GITLAB_TOKEN_SECRET_KEY (string, optional): The key within the kubernetes secret that contains the GitLab token. default: token
  • SHA (string): The commit SHA to set the status for.
  • TARGET_URL (string): The target URL to associate with this status. This URL will be linked from the GitLab UI to allow users to easily see the source of the status. For example you can link to a dashboard URL so users can follow a Pipeline/Task run.
  • GITLAB_HOST_URL (string, optional): The GitLab host domain. default: gitlab.com
  • API_PATH_PREFIX (string, optional): The GitLab Enterprise has a prefix for the API path. default: /api/v4
  • REPO_FULL_NAME (string, optional): The GitLab repository full name. default: tektoncd/catalog
  • DESCRIPTION (string): A short description of the status. e.g: Building your MR
  • CONTEXT (string, optional): The GitLab context, A string label to differentiate this status from the status of other systems. e.g: continuous-integration/tekton
  • COVERAGE (string, optional): The total code coverage. Should be a float string. default: ""

Platforms

The Task can be run on linux/amd64 platform.