diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 135be1cecb462f70c94863f36fcc5d57e1bae784..01f853b8c26d054cd0be301603229e8eb3ebf3ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,3 +19,35 @@ sast:
   before_script:
     - python --version # For debugging
 
+# Override format artifact paths
+format:
+  artifacts:
+    when: on_failure
+    paths:
+      - my_awesome_app/format.patch
+
+# Override test artifact paths
+test:
+  artifacts:
+    paths:
+      # This will give a warning which is ok
+      - my_awesome_app/build/test/unittests.xml
+      - my_awesome_app/build/coverage.tar.gz
+    reports:
+      junit: my_awesome_app/build/test/unittests.xml
+      coverage_report:
+        coverage_format: cobertura
+        path: my_awesome_app/build/coverage.xml
+
+# Override abi-test artifact paths
+abi-test:
+  artifacts:
+    paths:
+      - my_awesome_app/compat_reports/hello/${APPLICATION_LAST_RELEASE}_to_master
+
+# Override pages artifact paths
+pages:
+  artifacts:
+    expire_in: 1w
+    paths:
+      - my_awesome_app/build/doc/*
diff --git a/{{cookiecutter.project_slug}}/.gitlab-ci.yml b/{{cookiecutter.project_slug}}/.gitlab-ci.yml
index 1ef8720683e3a6d22dbb88035410ffe50f093e40..ea7c8781a2b57445ba675741bcf5c67154141ca5 100644
--- a/{{cookiecutter.project_slug}}/.gitlab-ci.yml
+++ b/{{cookiecutter.project_slug}}/.gitlab-ci.yml
@@ -129,12 +129,17 @@ pages:
   needs: ["trigger_prepare"]
   script:
     # Generate documentation.
+    - mkdir build
     - cd build
     - cmake -DBUILD_DOCUMENTATION=ON -G Ninja ..
     - ninja sphinx
     # Extract HTML coverage report.
     - tar xfz coverage.tar.gz
     # TODO: Add an index page with links to the documentation and coverage.
+  artifacts:
+    expire_in: 1w
+    paths:
+      - build/doc/*
 
 abi-deploy:
   stage: publish