create real message from drone environment variables

This commit is contained in:
Hanjo Meinhardt 2018-01-27 14:43:29 +01:00
parent 427cbc7af8
commit 5571785ad1

View File

@ -10,7 +10,9 @@
[ -z "$PLUGIN_JSERVER" ] && echo "missing jserver" && exit 1
[ -z "$PLUGIN_RECIPIENT" ] && echo "missing recipient" && exit 1
MSG="drone ist da"
# create message from drone environment
[ -n "$DRONE_TAG"] && MSG="$DRONE_REPO_NAME:$DRONE_TAG" || MSG="$DRONE_REPO_NAME:$DRONE_TAG"
MSG="$MSG:$DRONE_BUILD_STATUS:$DRONE_BUILD_LINK"
CMD="sendxmpp \
-u ${PLUGIN_USERNAME} \