From 5afb398299dc0c475ff901f4d12e2eb155c84967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sat, 14 Jan 2023 23:27:50 +0100 Subject: [PATCH] Update DroneCI config --- .drone.yml | 19 +++++++++++++------ pom.xml | 7 +++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index d968e30..3646489 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,13 +10,20 @@ steps: image: maven:3-eclipse-temurin-16 commands: - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - find - mvn javadoc:javadoc + - find - mvn test -B + - find - name: code-analysis - image: aosapps/drone-sonar-plugin - settings: - sonar_host: - from_secret: sonar_host - sonar_token: - from_secret: sonar_token \ No newline at end of file + image: maven:3-eclipse-temurin-16 + commands: + - mvn sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY + environment: + SONAR_PROJECT_KEY: + from_secret: sonar_project_key + SONAR_INSTANCE_URL: + from_secret: sonar_instance_url + SONAR_LOGIN_KEY: + from_secret: sonar_login_key \ No newline at end of file diff --git a/pom.xml b/pom.xml index 6a68383..9dd6e31 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,13 @@ 3.4.1 + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 + +