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: |