diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc56d59a6123142f62b46e87e16bee72dbbba5c4..186fa1d5dac8692f23393520486deb329cb3c7bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,6 +82,11 @@ test-docs-crds-regression:
   script:
     - crdoc --resources ../theodolite/crd/ --template api-reference/crds.tmpl  --output api-reference/crds.ref.md
     - cmp api-reference/crds.md api-reference/crds.ref.md
+  artifacts:
+    when: on_failure
+    paths:
+      - docs/api-reference/crds.ref.md
+    expire_in: 1 week
   rules:
     - changes:
       - docs/api-reference/crds.tmpl