Debug metric push.

This commit is contained in:
Will Rouesnel 2018-11-11 21:03:41 +11:00
parent 1e5f7f46f4
commit 5bd5c591be
No known key found for this signature in database
GPG Key ID: 72DC65802A1091C5
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,9 @@ METRICS_DIR="$ASSETS_DIR/metriclists"
mkdir -p "$METRICS_DIR/"
# Remove old files so we spot deletions
rm -f "$METRICS_DIR/*.unique"
rm -f "$METRICS_DIR/.*.unique"
ls -la
# Copy new files
cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1
@ -22,6 +24,8 @@ cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1
# Enter the assets dir and push.
cd "$ASSETS_DIR" || exit 1
ls -laR
git add "$METRICS_DIR" || exit 1
git commit -m "Added unique metrics for build from $version" || exit 1
git push origin "$GIT_ASSETS_BRANCH" || exit 1