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.
22 lines
380 B
Bash
22 lines
380 B
Bash
#!/bin/sh
|
|
|
|
: ${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
|