You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using sonarqube with gitlab and in our pipeline, starting the analysis, running tests and completing analysis are on different jobs. When the repo is cloned, there's a random string in the path (which is the id of the provisioned runner) which makes the path not the same accross all the jobs. Therefore, as all paths are absolute, I need to rewrite and change the base path.
Something like that:
- find results/ -type f -name "coverage.opencover.xml" -exec sed -i "s /src ${CI_PROJECT_DIR} gI" {} \;
- find .sonarqube/ -type f -exec sed -i "s /builds/.*/${CI_PROJECT_PATH} ${CI_PROJECT_DIR} gI" {} \;
- find . -type f -name "*.RoslynCA.json" -exec sed -i "s /builds/.*/${CI_PROJECT_PATH} ${CI_PROJECT_DIR} gI" {} \;
- dotnet-sonarscanner end -d:sonar.login="${SONAR_TOKEN}"
Hi,
I'm currently encountering issues as I need to do a sed to replace paths in FilesToAnalyze.txt files as those files are utf-16le encoded.
Can you change them to utf-8 ? Just removing Encoding parameters in the file should do the trick as default value is utf-8.
Thanks !
sonar-scanner-msbuild/src/SonarScanner.MSBuild.Tasks/Targets/SonarQube.Integration.targets
Line 294 in 45df416
The text was updated successfully, but these errors were encountered: