diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index def3ced731b28d651494ed77ba89826745df096b..45a3c0963010bdcc17a04bb5a92cfab4ec33b0b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,10 +37,9 @@ build:
   stage: build
   resource_group: ${CI_COMMIT_BRANCH} # this prevents parallel (potentially racy) pipeline runs
   script:
-    - ls -l
-    - rm -r latest
     - mkdir -p latest
     - "(curl -LsS --header 'PRIVATE-TOKEN: ${CI_JOB_TOKEN}' https://${CI_SERVER_HOST}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/jobs/artifacts/${CI_COMMIT_BRANCH}/download?job=build | bsdtar -xf - -C latest) || true"
+    - ls -l latest/
     - test -d latest/dist && export LATEST_UTIL_VERSION=$(cd latest/dist; ls *.whl | sed -r 's/.*\+([a-z0-9.]+)-.*/\1/g')
     - test -d latest/dist && export LATEST_API_VERSION=$(cd latest/dist; ls *.whl | sed -r 's/netdb_client-([0-9]+\.[0-9]+\.[0-9]+).*/\1/g')
     - test -d latest/dist && export POST_NUM=$(cd latest/dist; ls *.whl | sed -r 's/.*\.post([0-9]+).*/\1/g')