Commit 95932352 authored by Mame Bineta Diakite's avatar Mame Bineta Diakite

update notification

parent 4bd5ba7b
...@@ -7,7 +7,7 @@ pipeline { ...@@ -7,7 +7,7 @@ pipeline {
IMAGE_NAME = "odoo-app" IMAGE_NAME = "odoo-app"
HELM_RELEASE = "chart-odoo" HELM_RELEASE = "chart-odoo"
KUBE_CONTEXT = "minikube" // Contexte Kubernetes utilisé KUBE_CONTEXT = "minikube" // Contexte Kubernetes utilisé
GOOGLE_CHAT_WEBHOOK = "https://chat.googleapis.com/v1/spaces/AAAACNlaIpk/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=RuFeBsALb8RwwvnHGneayfHq1r5fMc6rUtoKLlQr-DA" // Remplacez par votre webhook GOOGLE_CHAT_WEBHOOK = "https://chat.googleapis.com/v1/spaces/AAAACNlaIpk/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=RuFeBsALb8RwwvnHGneayfHq1r5fMc6rUtoKLlQr-DA"
} }
stages { stages {
...@@ -66,7 +66,7 @@ pipeline { ...@@ -66,7 +66,7 @@ pipeline {
script { script {
def message = """ def message = """
{ {
"text": "Pipeline completed successfully for build #${env.BUILD_NUMBER} of ${IMAGE_NAME}." "text": "build de l'image termine avec succe : ${IMAGE_NAME}."
} }
""" """
sh """ sh """
...@@ -87,7 +87,7 @@ pipeline { ...@@ -87,7 +87,7 @@ pipeline {
script { script {
def message = """ def message = """
{ {
"text": "Pipeline failed for build #${env.BUILD_NUMBER} of ${IMAGE_NAME}. Please check the logs." "text": "ecchec du build #${env.BUILD_NUMBER} de l'image ${IMAGE_NAME}."
} }
""" """
sh """ sh """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment