diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5632cec8fdfcefbaab86a52b8520d51a49fc7f41..dc27eb5de605ed0bbf6abdce5595f441f14c5db6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,6 @@ default:
 # only cache local items.
 variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
-  CI_DEBUG_TRACE: "true"
 
 # Pip's cache doesn't store the python packages
 # https://pip.pypa.io/en/stable/reference/pip_install/#caching
@@ -38,7 +37,7 @@ build:
   resource_group: ${CI_COMMIT_BRANCH} # this prevents parallel (potentially racy) pipeline runs
   script:
     - 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"
+    - "(curl -LsS https://${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_COMMIT_BRANCH}/download?job=build&job_token=${CI_JOB_TOKEN} | bsdtar -xf - -C latest) || true"
     - ls -l latest/dist
     - 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')