- Versions used SonarQube: 9.3 Scanner : 4.7.0.2747
We have some files/dirs QOUTA/TestScripts
in sources which we are trying to exclude everything from this directory while executing scan, same is mentioned in properties file with sonar.exclusions
.
Though in the logs scanner prints that its ignoring those, but in reality it does not and fails during the scan.
We have configured this as per docs Narrowing the Focus | SonarQube Docs ,
So why is it not excluding everything from this directory QOUTA/TestScripts/**/*
?
INFO: Project configuration:
INFO: Excluded sources: misc/**/*, Tools/**/*, CI/**/*, ci-cd/**/*, QOUTA/TestScripts/**/*
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 7.556s
INFO: Final Memory: 21M/100M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: QOUTA/TestScripts/Server/test_certs/aTest??z_??_S.A..pem
at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:145)
at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:69)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279)
at java.base/java.nio.file.Path.resolve(Path.java:515)
at org.sonar.scm.git.IncludedFilesRepository.indexFiles(IncludedFilesRepository.java:65)
at org.sonar.scm.git.IncludedFilesRepository.<init>(IncludedFilesRepository.java:40)
at org.sonar.scm.git.GitIgnoreCommand.init(GitIgnoreCommand.java:37)
at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.index(ProjectFileIndexer.java:104)```