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