Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit 1c7f644

Browse files
committed
Merge branch 'dmius-ciimprove' into 'master'
Save result for every commit See merge request postgres-ai-team/postgres-checkup!289
2 parents f82b853 + 73f5e2f commit 1c7f644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ test-general:
103103
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts || true
104104
- ssh -T [email protected] || true
105105
- (cd ~/ && git clone [email protected]:postgres-ai-team/postgres-checkup-tests.git) || true
106-
- (mkdir -p ~/postgres-checkup-tests/$CI_COMMIT_REF_NAME && rm -Rf ~/postgres-checkup-tests/$CI_COMMIT_REF_NAME/*) || true
106+
- (mkdir -p ~/postgres-checkup-tests/$CI_COMMIT_REF_NAME && [[ "$CI_COMMIT_REF_NAME" != "master" ]] && rm -Rf ~/postgres-checkup-tests/$CI_COMMIT_REF_NAME/*) || true
107107
- (cp -Rf $ARTIFACTS_PATH/test/* ~/postgres-checkup-tests/$CI_COMMIT_REF_NAME/) || true
108-
- (cd ~/postgres-checkup-tests && git add ./$CI_COMMIT_REF_NAME && git commit -m "$CI_COMMIT_REF_NAME artifacts" && git push) || true
108+
- (cd ~/postgres-checkup-tests && git add ./$CI_COMMIT_REF_NAME/* && git commit -m "$CI_COMMIT_REF_NAME artifacts" && git push) || true
109109
- exit $TEST_RESULT
110110

111111
artifacts:

0 commit comments

Comments
 (0)