From 8b1fc775aa34b88e5e3df08fa216672bd6df0d0e Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 22 Jul 2022 20:52:34 +0200 Subject: [PATCH] Analyze. --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6041e30..a19bff0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,9 +2,19 @@ kind: pipeline type: docker name: default +environment: + SONAR_HOST_URL: + from_secret: sonarScannerHostUrl + SONAR_LOGIN: + from_secret: sonarScannerLogin + steps: - name: test image: maven:3-jdk-10 commands: - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V - - mvn test -B \ No newline at end of file + - mvn test -B + - name: analyse + image: maven:3-jdk-10 + commands: + - mvn clean verify sonar:sonar -Dsonar.projectKey=LDC -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN