Bugsnag app revision: use timestamp instead of Git hash

This turns the 'revision' we send to Bugsnag into an incremental number
that denotes the current time. This is more indicative of the application
version than the git revision of the Blender Cloud repository, as the
latter doesn't include any changes in the other repositories.
This commit is contained in:
2017-10-17 12:32:15 +02:00
parent 5dc4b398c2
commit 5d26e3940e

View File

@@ -120,10 +120,10 @@ $FLAMENCO_DIR/rsync_ui.sh ${DEPLOYHOST}
# Notify Bugsnag of this new deploy.
echo
echo "==================================================================="
GIT_REVISION=$(${SSH} git -C ${REMOTE_ROOT} describe --always)
echo "Notifying Bugsnag of this new deploy of revision ${GIT_REVISION}."
REVISION=$(date +'%Y%m%d.%H%M%S.%Z')
echo "Notifying Bugsnag of this new deploy of revision ${REVISION}."
BUGSNAG_API_KEY=$(${SSH} python -c "\"import sys; sys.path.append('${REMOTE_ROOT}'); import config_local; print(config_local.BUGSNAG_API_KEY)\"")
curl --data "apiKey=${BUGSNAG_API_KEY}&revision=${GIT_REVISION}" https://notify.bugsnag.com/deploy
curl --data "apiKey=${BUGSNAG_API_KEY}&revision=${REVISION}" https://notify.bugsnag.com/deploy
echo
# Wait for [ENTER] to restart the server