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.1
Quan Zhang e294e1246b [TEP-0110] Update Tekton Catalog installation instructions
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539

This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization.
2022-08-16 16:25:52 +01:00
..
tests Add gitlab-set-status task 2021-08-31 07:54:14 +01:00
gitlab-set-status.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +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://api.hub.tekton.dev/v1/resource/tekton/task/gitlab-set-status/0.1/raw

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

Platforms

The Task can be run on linux/amd64 platform.