赞
踩
安装命令:
> dotnet tool install --global dotnet-sonarscanner --version 4.7.1
查看版本号和帮助
> dotnet sonarscanner /?
我的安装目录:
C:\Users\administrator\.dotnet\tools\.store\dotnet-sonarscanner\4.7.1\dotnet-sonarscanner\4.7.1\tools\netcoreapp2.1\any
配置文件名:
SonarQube.Analysis.xml
修改如下部分
<Property Name="sonar.host.url">http://localhost:9000</Property>
<Property Name="sonar.login">admin</Property>
<Property Name="sonar.password">admin123</Property>
stage ('SonarQube') {
steps {
bat "dotnet sonarscanner begin /key:demo"
bat "dotnet build demo.sln"
bat "dotnet sonarscanner end "
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。