Index: build/unittest.sh =================================================================== diff -u -ra1e296e80b0f398b33b795b9523b30777e0978d7 -r683152d821ba3488f74c9f62152beb0036bf3dd8 --- build/unittest.sh (.../unittest.sh) (revision a1e296e80b0f398b33b795b9523b30777e0978d7) +++ build/unittest.sh (.../unittest.sh) (revision 683152d821ba3488f74c9f62152beb0036bf3dd8) @@ -428,7 +428,7 @@ } # Function to run SonarQube -function runSonarQube() +function runUISonarQube() { # shellcheck disable=SC2155 local currentDir="$(pwd)" @@ -487,7 +487,7 @@ echo 'runReport=$(java -jar sonar-cnes-report-4.2.0.jar -p $1 -t \ aa04ef5851c9cd5bcaaa305e7173714a2739b3f0 2>error.log)' >> "$inlineScriptForReport" # shellcheck disable=SC2016 - echo 'docxFile=$(find $(pwd) -name "*.docx" | grep "$latestRunDate")' >> "$inlineScriptForReport" + echo 'docxFile=$(find $(pwd) -name "*.docx" | grep "$latestRunDate-$1")' >> "$inlineScriptForReport" # shellcheck disable=SC2016 echo 'echo $docxFile' >> "$inlineScriptForReport" # Copy the created script into the Sonar server. Use sshpass -f to get the password from the file @@ -514,7 +514,7 @@ setup_System_Environment # has to be after setup_Script_Environment ran clone_Repositories make_Directories - runSonarQube + runUISonarQube if [[ ${buildSpecs[$BUILD_ONLY_FLAG_INDEX]} == false ]] then