From 5d26e3940e4231eb27ee4942002baddf42609a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 17 Oct 2017 12:32:15 +0200 Subject: [PATCH] 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. --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 8b83a33..7437fab 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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