1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-28 06:30:40 +00:00
catalog/task/gitlab-set-status/0.1
Frerik Andriessen 9580cd1ad6 Add gitlab-set-status task
It's basically the gitlab variant of the github-set-status task
2021-08-31 07:54:14 +01:00
..
tests Add gitlab-set-status task 2021-08-31 07:54:14 +01:00
gitlab-set-status.yaml Add gitlab-set-status task 2021-08-31 07:54:14 +01:00
README.md Add gitlab-set-status task 2021-08-31 07:54:14 +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 and a target_url, to give the user informations about the CI statuses or a direct link to the full log.

Install the Task

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/gitlab-set-status/0.1/gitlab-set-status.yaml

Parameters

  • STATE: The state of the status. Can be one of the following pending, running, success, failed, or canceled.
  • GITLAB_TOKEN_SECRET_NAME: The name of the kubernetes secret that contains the GitLab access token. default: gitlab-api-secret
  • GITLAB_TOKEN_SECRET_KEY: The key within the kubernetes secret that contains the GitLab token, default: token
  • SHA: The commit SHA to set the status for
  • TARGET_URL: 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: The GitLab host domain default: gitlab.com
  • API_PATH_PREFIX: The GitLab Enterprise has a prefix for the API path. default: /api/v4
  • REPO_FULL_NAME: The GitLab repository full name, default: tektoncd/catalog
  • DESCRIPTION: A short description of the status. e.g: Building your MR
  • CONTEXT: The GitLab context, A string label to differentiate this status from the status of other systems. e.g: continuous-integration/tekton