From 1eaf91fc227cb5c682ae3289efad9e86cc783e15 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 17 Oct 2023 16:53:29 +0200 Subject: [PATCH] Add pipeline step for analyzing code --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2aa47b..e2b2dc6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,14 @@ test: junit: - "**/target/surefire-reports/TEST-*.xml" +check: + stage: build + image: markhobson/maven-chrome:jdk-18 + script: + - *setup-mvn + - ./mvnw clean compile + - ./mvnw sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.projectName=$SONAR_PROJECT -Dsonar.host.url=$SONAR_URL -Dsonar.token=$SONAR_TOKEN + build: stage: build image: maven:3.8.6-openjdk-18