diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 305e8af6965ab7972d1f4a8149f1d67b01f0df68..b6509b3e485ae8ebf9299e99c49cdb7ffb135767 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,6 @@ test:
     - private
   script:
     - make test
-    - sudo /bin/chown -R gitlab-runner target
     - cat target/site/jacoco/index.html
 
 cleanup:
@@ -17,4 +16,5 @@ cleanup:
   tags:
     - private
   script:
+    - sudo /bin/chown -R gitlab-runner target
     - make clean_test
\ No newline at end of file