It is my first time using sonarqube. I am using 7.9.4 version with the community cxx plugin.
I tried in a super simple project and it worked so I went for a bigger project but I keep getting this error everytime I try to build my pipeline ```Language of file 'Source\age3\abilities.h' can not be decided as the file matches patterns of both sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.h,**/*.hxx,**/*.hpp,**/*.hh,**/*.h and sonar.lang.patterns.c : **/*.c,**/*.h``` I have tried adding the suffixes to the sonar-project.properties as follow: ``` sonar.projectKey=Boston sonar.projectName=Boston sonar.dotnet.visualStudio.solution=Age3DE.sln sonar.scm.disabled=true sonar.language=c++ sonar.c.file.suffixes=- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.c,.h sonar.sources=./Source sonar.sourceEncoding=UTF-8 ``` and also adding this parameters to my pipeline with -D as: ``` stage('SonarQube analysis') { steps{ script{ def scannerHome = tool 'SonarMSBuild' withSonarQubeEnv('Sonar_Server') { bat """ ${scannerHome}\\sonar-scanner-4.4.0.2170\\bin\\sonar-scanner.bat -X -Dsonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.c,.h -Dsonar.projectKey=Boston -Dsonar.projectName=Boston -Dsonar.sources=./Source -Dsonar.scm.disabled=true -Dsonar.language=c++ -Dsonar.sourceEncoding=UTF-8 """ } } } } ``` I have also addedh the .h extension on the sonarqune UI under administration -> Configuration -> C++ -> Source files suffixes, but none of them work -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7fcbb545-975b-4d72-89f8-f3f59cf1968an%40googlegroups.com.