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:
@@ -120,10 +120,10 @@ $FLAMENCO_DIR/rsync_ui.sh ${DEPLOYHOST}
|
|||||||
# Notify Bugsnag of this new deploy.
|
# Notify Bugsnag of this new deploy.
|
||||||
echo
|
echo
|
||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
GIT_REVISION=$(${SSH} git -C ${REMOTE_ROOT} describe --always)
|
REVISION=$(date +'%Y%m%d.%H%M%S.%Z')
|
||||||
echo "Notifying Bugsnag of this new deploy of revision ${GIT_REVISION}."
|
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)\"")
|
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
|
echo
|
||||||
|
|
||||||
# Wait for [ENTER] to restart the server
|
# Wait for [ENTER] to restart the server
|
||||||
|
Reference in New Issue
Block a user