Skip to content

Commit

Permalink
cleanup notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
hydazz committed Feb 15, 2023
1 parent 13a8ed3 commit 5ce97fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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} '''
}
}
Expand Down

0 comments on commit 5ce97fc

Please sign in to comment.