From dcdbfedb12d1811194e291720de3982c993b151c Mon Sep 17 00:00:00 2001 From: Jens True Date: Mon, 14 Sep 2020 21:16:28 +0200 Subject: [PATCH] Sonarqube scan on push --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 978af3a..36c0c1e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,4 +4,10 @@ steps: - name: build image: mono commands: + - dotnet tool install --global dotnet-sonarscanner + - dotnet sonarscanner begin /k:"tidstagning" /d:sonar.host.url="https://sonarqube.jcktrue.dk" /d:sonar.login="$TOKEN" - msbuild Tidstagning.sln + - dotnet sonarscanner end /d:sonar.login="$TOKEN" + environment: + TOKEN: + from_secret: SONARQUBE_TOKEN \ No newline at end of file