From 0ca63eef66acc4a7bfdb5eb5b118dc787b9cf313 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 31 Oct 2019 07:15:23 +0000 Subject: [PATCH] RUN_SONAR (#373) --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c02c9dde..e9f1216b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,6 +26,7 @@ steps: - script: | %USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"wiremock" /o:"stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="**\coverage.opencover.xml" displayName: Begin SonarScanner + condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes')) # Build source, tests and run tests for net452 and netcoreapp2.1 (with coverage) - script: | @@ -37,9 +38,11 @@ steps: - script: | %USERPROFILE%\.dotnet\tools\dotnet-sonarscanner end /d:sonar.login="$(SONAR_TOKEN)" displayName: End SonarScanner + condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes')) - task: whitesource.ws-bolt.bolt.wss.WhiteSource Bolt@19 displayName: 'WhiteSource Bolt' + condition: and(succeeded(), eq(variables['RUN_WHITESOURCE'], 'yes')) # Upload coverage to codecov.io - script: |