Skip to content

Commit fd4691c

Browse files
committed
Fix metrics push.
1 parent 5bd5c59 commit fd4691c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ after_success:
2222
; docker push wrouesnel/postgres_exporter:$TRAVIS_TAG ; fi
2323
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker push wrouesnel/postgres_exporter
2424
; fi
25-
- ./postgres-metrics-get-changes.sh .assets-branch
25+
- ./postgres-metrics-get-changes.sh .assets-branch/metriclists
2626
- if [ "$TRAVIS_BRANCH" == "support_shell_fixes" ]; then ./gh-metrics-push.sh ; fi
2727
env:
2828
global:

gh-metrics-push.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ mkdir -p "$METRICS_DIR/"
1616
# Remove old files so we spot deletions
1717
rm -f "$METRICS_DIR/.*.unique"
1818

19-
ls -la
20-
2119
# Copy new files
2220
cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1
2321

2422
# Enter the assets dir and push.
2523
cd "$ASSETS_DIR" || exit 1
2624

27-
ls -laR
28-
29-
git add "$METRICS_DIR" || exit 1
25+
git add "metriclists" || exit 1
3026
git commit -m "Added unique metrics for build from $version" || exit 1
3127
git push origin "$GIT_ASSETS_BRANCH" || exit 1
3228

0 commit comments

Comments
 (0)