1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
511 B
Bash

#!/bin/sh
[ -n PLUGIN_USERNAME ] && PLUGIN_USERNAME="${SENDXMPP_USERNAME}"
[ -n PLUGIN_PASSWORD ] && PLUGIN_PASSWORD="${SENDXMPP_PASSWORD}"
: ${PLUGIN_USERNAME?"missing username"}
: ${PLUGIN_JSERVER?"missing jserver"}
: ${PLUGIN_PASSWORD?"missing password"}
: ${PLUGIN_RECIPIENT?"missing recipient"}
env | grep DRONE
MSG="drone ist da"
CMD="sendxmpp \
-u ${PLUGIN_USERNAME} \
-j ${PLUGIN_JSERVER} \
-p ${PLUGIN_PASSWORD} \
--tls \
--verbose \
--no-tls-verify
${PLUGIN_RECIPIENT}"
echo $MSG | $CMD