diff --git a/.gitlab/ci/graphql.gitlab-ci.yml b/.gitlab/ci/graphql.gitlab-ci.yml
index e67a7753da7092ade3b528775c6b4df7247f6dc3..c8066cc52eb5e299419a830512b6b230f897aafc 100644
--- a/.gitlab/ci/graphql.gitlab-ci.yml
+++ b/.gitlab/ci/graphql.gitlab-ci.yml
@@ -13,3 +13,10 @@ graphql-verify:
     - bundle exec rake gitlab:graphql:check_docs
     - bundle exec rake gitlab:graphql:schema:dump
     - node scripts/frontend/graphql_possible_types_extraction.js --check
+  artifacts:
+    expire_in: 7 days
+    name: graphql-schema-verify
+    paths:
+      - tmp/tests/graphql/gitlab_schema.graphql
+      - tmp/tests/graphql/gitlab_schema.json
+    when: always
diff --git a/scripts/frontend/graphql_possible_types_extraction.js b/scripts/frontend/graphql_possible_types_extraction.js
index 61f783086e7a35e0d96f1fe7f3376cb0019b1a63..fdc258e3210ff3aaebe97ee2ee8542915592994d 100755
--- a/scripts/frontend/graphql_possible_types_extraction.js
+++ b/scripts/frontend/graphql_possible_types_extraction.js
@@ -65,5 +65,6 @@ Options:
 
 main().catch((error) => {
   console.warn(error.message);
+  console.warn(error.stack);
   process.exitCode = 1;
 });