From 5ce97fc326a2b672cdf3343bbf7f5574c62e028c Mon Sep 17 00:00:00 2001 From: hydazz Date: Wed, 15 Feb 2023 22:07:13 +1100 Subject: [PATCH] cleanup notifications --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 69b3f0b..99d8681 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -148,12 +148,12 @@ pipeline { script{ if (currentBuild.currentResult == "SUCCESS"){ sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 1681177,\ - "description": "**'${IG_REPO}'**\\n**Build** '${BUILD_NUMBER}'\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\ + "description": "**'${IG_REPO}' Build '${BUILD_NUMBER}' ({{ ig_branch }})**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\ "username": "Jenkins"}' ${BUILDS_DISCORD} ''' } else { sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 16711680,\ - "description": "**'${IG_REPO}'**\\n**Build** '${BUILD_NUMBER}'\\n**Status:** Failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\ + "description": "**'${IG_REPO}' Build '${BUILD_NUMBER}' Failed! ({{ ig_branch }})**\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\ "username": "Jenkins"}' ${BUILDS_DISCORD} ''' } }