Last active
January 27, 2016 01:55
-
-
Save michaelneale/9a7fb436223a765d1775 to your computer and use it in GitHub Desktop.
Jenkins Workflow post to IRC
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
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