withEnv([
"msbuild15=${tool name: 'Visual Studio 2017', type: 'msbuild'}",
"vstest15=${tool name: 'VSTest 2017', type: 'org.jenkinsci.plugins.vstest_runner.VsTestInstallation'}",
"sonarQubeMsbuildHome=${tool 'SonarQube MSBuild'}"
]) {
withSonarQubeEnv('v-sonarqube') {
bat "$sonarQubeMsbuildHome\\SonarQube.Scanner.MSBuild.exe begin /k:proj001"
bat "nuget.exe restore"
bat "\"$msbuild15\"" +
" \"Project001.sln\"" +
" /p:DeployOnBuild=true;PublishProfile=DeployPackage;Configuration=Release /m /nr:false"
bat(returnStatus: true,
script: "\"$vstest15\"" +
" Project001.Web.Tests/bin/Release/net45/Project001.Web.Tests.dll" +
" Project001.Common.Tests/bin/Release/net45/Project001.Common.Tests.dll" +
" /UseVsixExtensions:false /Logger:trx /Parallel"
);
bat "$sonarQubeMsbuildHome\\SonarQube.Scanner.MSBuild.exe end"
}
}Hi Julien, thanks for your swift reply.I am now confused, as we have used the instructions from "Sonar for Bitbucket Server" plugin (https://marketplace.atlassian.com/plugins/ch.mibex.stash.sonar4stash/server/overview)We are using on-premise Bitbucket Server (Stash), not the Bitbucket Cloud.What should we do?
Fabrice BELLINGARD | SonarSource |
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/36cc6dd8-17d2-4e21-ba4e-602d99c9623e%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.