From 644fcd7d844a8dc706598b0dde64b0fd674ae61e Mon Sep 17 00:00:00 2001 From: tpariney Date: Thu, 25 Sep 2025 11:14:46 +0200 Subject: [PATCH] Configure SonarCube in CI --- .gitlab-ci.yml | 6 +++++- pom.xml | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6dc72e..2b3d3d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,11 @@ build-job: script: - chmod +x ./settings.sh - ./settings.sh - - mvn clean deploy + - mvn clean jacoco:prepare-agent test jacoco:report install sonar:sonar deploy + -Dsonar.projectKey=tpariney-robot-modules + -Dsonar.projectName=tpariney-robot-modules + -Dsonar.host.url=https://disc.univ-fcomte.fr/cr700-sonarqube + -Dsonar.token=$SONAR_TOKEN tags: - avm_groupe1 rules: diff --git a/pom.xml b/pom.xml index 4530f36..040dba4 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,11 @@ test + + + ${project.basedir}/target/site/jacoco/jacoco.xml + + nexus-deptinfo @@ -24,6 +29,22 @@ https://disc.univ-fcomte.fr/cr700-nexus/repository/maven-snapshots/ + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.0.2155 + + + org.jacoco + jacoco-maven-plugin + 0.8.7 + + + + robot battery -- GitLab