Commit 1a10994f authored by Mame Bineta Diakite's avatar Mame Bineta Diakite

Update notification

parent 95932352
...@@ -61,14 +61,14 @@ pipeline { ...@@ -61,14 +61,14 @@ pipeline {
} }
} }
stage('Send Notification to Google Chat') { stage('Send Notification to Google Chat') {
steps { steps {
script { script {
def message = """ def message = '''
{ {
"text": "build de l'image termine avec succe : ${IMAGE_NAME}." "text": "Build de l'image terminé avec succès : ${IMAGE_NAME}."
} }
""" '''
sh """ sh """
curl -X POST -H "Content-Type: application/json" \ curl -X POST -H "Content-Type: application/json" \
-d '${message}' \ -d '${message}' \
...@@ -85,11 +85,11 @@ pipeline { ...@@ -85,11 +85,11 @@ pipeline {
} }
failure { failure {
script { script {
def message = """ def message = '''
{ {
"text": "ecchec du build #${env.BUILD_NUMBER} de l'image ${IMAGE_NAME}." "text": "Échec du build #${env.BUILD_NUMBER} de l'image ${IMAGE_NAME}."
} }
""" '''
sh """ sh """
curl -X POST -H "Content-Type: application/json" \ curl -X POST -H "Content-Type: application/json" \
-d '${message}' \ -d '${message}' \
......
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