-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
As part of our Jenkins pipeline, the final step is to notify any the authors of any failed builds, update the github status, and send a notification to Slack. This looks like
node { step([$class: 'Mailer', notifyEveryUnstableBuild: false, recipients: '', sendToIndividuals: true]) step([$class: 'GitHubCommitStatusSetter']) if (currentBuild.result == "SUCCESS") { slackSend color: 'good', message: "Build <${env.BUILD_URL}|#${env.BUILD_NUMBER}> succeeded (<${env.BUILD_URL}|Open>)" } else { slackSend color: 'danger', message: "Build <${env.BUILD_URL}|#${env.BUILD_NUMBER}> failed (<${env.BUILD_URL}|Open>)" } }
When this works, it shows up in the logs like
[Pipeline] step 10:01:56 An attempt to send an e-mail to empty list of recipients, ignored. [Pipeline] step 10:01:57 Setting commit status on GitHub for https://github.com/Giftbit/giftbitapp/commit/2e1c6a4556b009c6b5cae5a7c9efb3d923c5f899 [Pipeline] slackSend 10:01:57 Slack Send Pipeline step configured values from global config - teamDomain: true, token: true, channel: true, color: false
But when it doesn't work, the logs look like this
[Pipeline] step [Pipeline] step [Pipeline] slackSend 21:51:41 Slack Send Pipeline step configured values from global config - teamDomain: true, token: true, channel: true, color: false
In this build, the build succeeded, but no notification was sent to GitHub
And in this case, the build failed, but no notification was sent to Github
[Pipeline] step 18:13:16 An attempt to send an e-mail to empty list of recipients, ignored. [Pipeline] step [Pipeline] slackSend 18:13:16 Slack Send Pipeline step configured values from global config - teamDomain: true, token: true, channel: true, color: false
Nothing useful seems to go into the logs to explain why it's not sending.