mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
e96d209bf1
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms is added to the latest versions of the send-to-* tasks. Curl image used in the tasks is upgraded from 7.68.0 to 7.70.0 to use multi-arch version. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com> |
||
---|---|---|
.. | ||
README.md | ||
send-to-microsoft-teams.yaml |
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://raw.githubusercontent.com/tektoncd/catalog/main/task/send-to-microsoft-teams/0.1/send-to-microsoft-teams.yaml
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