From e4008efaaad06bda657e61b531a5739c57245315 Mon Sep 17 00:00:00 2001
From: Daniel Rainer <daniel.m.rainer@student.uibk.ac.at>
Date: Thu, 21 Jul 2022 20:06:58 +0200
Subject: [PATCH] Put the sonar-analyze job into a separate stage

This job requires artifacts from other jobs,
namely test results, which were generated in by jobs in the same stage.
Gitlab does not support passing artifacts within a stage, so the
sonar-analyze job needs to be done in a later stage.
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdbf811b9..5dff898a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,6 +11,7 @@ stages:
   - lint
   - build
   - test
+  - analyze
   - release
   - deploy
   - e2e
@@ -181,7 +182,7 @@ e2e-test:
   when: on_success
 
 sonar-analyze:
-  stage: test
+  stage: analyze
   cache:
     # inherit all global cache settings
     <<: *global_cache
-- 
GitLab