Skip to content

Instantly share code, notes, and snippets.

@michaelneale
Last active January 27, 2016 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelneale/9a7fb436223a765d1775 to your computer and use it in GitHub Desktop.
Save michaelneale/9a7fb436223a765d1775 to your computer and use it in GitHub Desktop.
Jenkins Workflow post to IRC
stage "notify"
node {
sh '''
MSG='This is the message here'
SERVER=irc.freenode.net
CHANNEL=#mictest
USER=mic2234test
(
echo NICK $USER
echo USER $USER 8 * : $USER
sleep 1
#echo PASS $USER:$MYPASSWORD
echo "JOIN $CHANNEL"
echo "PRIVMSG $CHANNEL" :$MSG
echo QUIT
) | nc $SERVER 6667
'''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment