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

Update notification

parent 95932352
......@@ -61,14 +61,14 @@ pipeline {
}
}
stage('Send Notification to Google Chat') {
stage('Send Notification to Google Chat') {
steps {
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 """
curl -X POST -H "Content-Type: application/json" \
-d '${message}' \
......@@ -85,11 +85,11 @@ pipeline {
}
failure {
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 """
curl -X POST -H "Content-Type: application/json" \
-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