Skip to content

Instantly share code, notes, and snippets.

@ashwanthkumar
Created October 9, 2016 07:53
Show Gist options
  • Save ashwanthkumar/2db562521ac30e6de0ec6835b05f6b9a to your computer and use it in GitHub Desktop.
Save ashwanthkumar/2db562521ac30e6de0ec6835b05f6b9a to your computer and use it in GitHub Desktop.
import in.ashwanthkumar.slack.webhook.Slack
import in.ashwanthkumar.slack.webhook.SlackMessage
def webhookUrl = args[0]
new Slack(webhookUrl)
.icon(":smiling_imp:") // Ref - http://www.emoji-cheat-sheet.com/
.sendToChannel("z_development")
.displayName("slack-java-client")
.push(new SlackMessage("Text from my ").bold("Slack-Java-Client"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment