1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/send-to-microsoft-teams/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
..
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00
send-to-microsoft-teams.yaml Add platforms annotation to send-to-* tasks 2021-08-31 07:43:14 +01:00

Post a message to a Microsoft Teams Channel

These tasks post a simple message to a Microsoft Teams Channel.

send-to-microsoft-teams

This task uses the Incoming Webhook functionality of Microsoft Teams. Create this webhook as described here.

Install the Task and create a secret

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/send-to-microsoft-teams/0.1/raw

Create a secret that has the webhook URL in it.

Example of the secret:

kind: Secret
apiVersion: v1
metadata:
  name: microsoft-teams-webhook-url-secret
stringData:
  url: {incoming webhook url over here}

Parameters

  • webhook-url-secret: The name of the Secret for the incoming webhook URL.

  • webhook-url-secret-key: The key within the secret for the URL.

  • message: Plain text message to be posted in the chat.

Platforms

The Task can be run on linux/amd64, linux/s390x and linux/ppc64le platforms.

Usage

This TaskRun runs the Task to post a message to the the teams channel.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: run-send-to-microsoft-teams
spec:
  params:
  - name: webhook-url-secret
    value: microsoft-teams-webhook-url-secret
  - name: webhook-url-secret-key
    value: url
  - name: message
    value: "Hello from Tekton!"
  taskRef:
    name: send-to-microsoft-teams