Last active
January 21, 2019 15:45
-
-
Save marcosborges/4399b540965b1d7911ebf6ece8e5fcb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def slackfy(msg){ | |
def hookURL = "https://hooks.slack.com/services/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" | |
def payload ="""{"text":"${msg}","username":"Jenkins","icon_emoji":":jenkins:"}""" | |
sh "curl -s -X POST --data-urlencode \'payload=${payload}\' ${hookURL}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment