From 9578fcdbc2ab6ba02f3a85e53fd67f366e603d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 15 Jan 2023 21:09:03 +0100 Subject: [PATCH] Fix SonarQube integration --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 475ff30..abfa275 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,14 @@ steps: - name: code-analysis image: maven:3-eclipse-temurin-16 commands: - - mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.host.url=${SONAR_INSTANCE_URL} -Dsonar.login=${SONAR_LOGIN_KEY} + - mvn sonar:sonar --no-transfer-progress -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 - name: maven-auth image: robertstettner/drone-mvn-auth