diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c585b20baccf8653809ed876aa287f5c56a5ec06..f7d6684819945eb1644336a70974c8f82948d8bf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,11 +82,11 @@ build-maven-job:
     - echo "Compiling the code..."
     - mvn clean verify
     - echo "Compile complete."
+  after_script:
+    - cat smp-aggregator/target/site/jacoco-aggregate/index.html | grep -o '<tfoot>.*</tfoot>'
   artifacts:
     when: always
     expire_in: 1 week
-    after_script:
-      - cat smp-aggregator/target/site/jacoco-aggregate/index.html | grep -o '<tfoot>.*</tfoot>'
     paths:
       - "target/site"
       - "*/target/site"