From d78743783fabe707ffe98b3d30686e10d07b0234 Mon Sep 17 00:00:00 2001 From: Louis DUFOUR Date: Fri, 15 Sep 2023 13:50:32 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e4eb7e..d425713 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,5 +17,18 @@ steps: commands: - mvn test - - +- name: sonnar + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 + secrets: [ SECRET_SONAR_LOGIN ] + environment: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN + project_key: CICD_Java_Backend_Personal_Library_louis + coverage_exclusions: "support/tests/**" + commands: + mvn clean verify sonar:sonar \ + -Dsonar.projectKey=CICD_Java_Backend_Personal_Library_louis \ + -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar \ + -Dsonar.login=$${sonar_token} + depends_on: [test] \ No newline at end of file