Closed pluttrell closed 5 years ago
Thanks for letting me know that. I'll dig into it.
I've tested it but didn't fail. Can you check it again? Otherwise, you can test it manually with
curl -X POST -H 'Content-type: application/json' --data '{"attachments":[{"color":"good","fields":[{"title":"xxxxxxxxx","value":"`xxxxxxxxx`","short":true},{"title":"GroupId","value":"`xxxxx`","short":true},{"title":"ArtifactId","value":"`xxxxxxxx`","short":true},{"title":"Version","value":"`1.0.8`","short":true}],"actions":[],"ts":1542187806}],"channel":"#new-artifacts","text":"*Published new artifact to Maven repo.*"}' https://hooks.slack.com/services/Txxxxxxx/Bxxxxxxxx/xxxxxxxxxxxxxxxxxx
Please change the address of the incoming hook of Txxxxxxx/Bxxxxxxxx/xxxxxxxxxxxxxxxxxx
to the valid one
This is the actual setting in build.gradle
slack {
webhookUrl 'https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX'
message {
text = 'Herbtea is built newly and deployed into *dev*'
iconUrl = 'http://cdn.mysitemyway.com/etc-mysitemyway/icons/legacy-previews/icons-256/green-jelly-icons-food-beverage/057312-green-jelly-icon-food-beverage-coffee-tea.png'
channel = '#zeppelinhub-deploy'
attachment {
authorName = "${System.properties['user.name']}"
authorLink = 'https://github.com/jongyoul'
//authorIcon
color = 'Green'
//fallback
//footer
//footerIcon
//imageUrl
//pretext
text = 'Built Herbtea'
//thumbUrl
title = 'Build'
titleLink = 'https://github.com/zepl/herbtea'
ts = Long.parseLong("${System.currentTimeSeconds()}")
}
}
}
Thanks for the help. It turns out that somehow our endpoint got removed.
Thanks for clarifying it.
Recently this plugin has stopped working. The build doesn't fail, but it doesn't publish to Slack and instead we see this in the console output:
Here's the full debug output with a few key things redacted: