From be8265e0e1400a908bac9991c09e5bef026323d4 Mon Sep 17 00:00:00 2001 From: Lucas DELANIER Date: Mon, 13 Mar 2023 15:20:50 +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 | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 98eb1cd..072eb77 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,30 +1,19 @@ kind: pipeline -ttype: docker +type: docker name: ShakeAndCraft trigger: - event: - - push - + event: + - push + steps: - - name: install-unzip - image: alpine - commands: - - apk add --no-cache unzip - - name: install-sonar-scanner - image: gradle:jdk11 - commands: - - curl -sSLo /tmp/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip - - unzip -q /tmp/sonar-scanner-cli.zip -d /opt/sonar-scanner - - export PATH=$PATH:/opt/sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin - - name: sonarqube - image: openjdk:latest + - name: code-analysis + image: openjdk:8-jdk environment: SONAR_TOKEN: from_secret: SONAR_TOKEN - SONAR_HOST_URL: "https://your-sonarqube-url.com" settings: - sources: ./ShakeAndCraft/ + sources: ./src/ commands: - export SONAR_SCANNER_VERSION=4.7.0.2747 - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux