From 52d227c9b63d857cfca2a7fea23a16165db4d8f4 Mon Sep 17 00:00:00 2001 From: Lucas DELANIER Date: Mon, 13 Mar 2023 15:14:16 +0100 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 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index c61c343..98eb1cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,10 +20,16 @@ steps: - name: sonarqube image: openjdk:latest environment: - SONAR_LOGIN: ${SONAR_TOKEN} + SONAR_TOKEN: + from_secret: SONAR_TOKEN SONAR_HOST_URL: "https://your-sonarqube-url.com" settings: sources: ./ShakeAndCraft/ commands: - - export PATH=$PATH:/opt/sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin - - sonar-scanner \ No newline at end of file + - export SONAR_SCANNER_VERSION=4.7.0.2747 + - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux + - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ + - export PATH=$SONAR_SCANNER_HOME/bin:$PATH + - export SONAR_SCANNER_OPTS="-server" + - sonar-scanner -D sonar.projectKey=ShakeAndCraft -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar \ No newline at end of file