Commit 073be9eb authored by Lin Jen-Shin's avatar Lin Jen-Shin

Restore `cd $CI_PROJECT_NAME` to fix full repo cache

See:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47220#note_446350892
parent c22d72d1
...@@ -49,6 +49,7 @@ cache-repo: ...@@ -49,6 +49,7 @@ cache-repo:
cd .. && rm -rf $CI_PROJECT_NAME; cd .. && rm -rf $CI_PROJECT_NAME;
echo "Cloning $CI_REPOSITORY_URL into $CI_PROJECT_NAME."; echo "Cloning $CI_REPOSITORY_URL into $CI_PROJECT_NAME.";
time git clone --progress $CI_REPOSITORY_URL $CI_PROJECT_NAME; time git clone --progress $CI_REPOSITORY_URL $CI_PROJECT_NAME;
cd $CI_PROJECT_NAME;
echo "Archiving $CI_PROJECT_NAME into /tmp/$FULL_CLONE_TAR_FILENAME."; echo "Archiving $CI_PROJECT_NAME into /tmp/$FULL_CLONE_TAR_FILENAME.";
time tar cf /tmp/$FULL_CLONE_TAR_FILENAME .; time tar cf /tmp/$FULL_CLONE_TAR_FILENAME .;
echo "GZipping /tmp/$FULL_CLONE_TAR_FILENAME."; echo "GZipping /tmp/$FULL_CLONE_TAR_FILENAME.";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment