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.