Need to Exclude files of Js,html and css files in my project scan.
I used below modification in Jenkin files using sonar exclusion as below
steps {
container('dotnetcore6') {
sonarScan(
projectKey: 'PTATDPORTAL:FidelityUI',
applicationName: "${APPLICATION_NAME}",
projectVersion: "1.0.0",
sonarArgs: ['-Dsonar.exclusions=**/*.css,**/*.html,**/*.js,**/*.cshtml'],
sonarQualityGate: 'PTATDPortal_QualityGate',
sonarLanguage: 'dotnetcore',
dotnetWindowsBuild: false,
msSolutionPath: ['SomePorjectName.sln']
)
}
}
When run build i am getting error as below
Unrecognized command line argument: -Dsonar.exclusions=**/*.css,**/*.html,**/*.js,**/*.cshtml
Please help me out on this whether i am uisng correct or not