Index: build/unittest.sh =================================================================== diff -u -r37ae4e443f7adbc7154a860694d50f3678fc0894 -r358ed051dc954393b71670590b0f4684ac845630 --- build/unittest.sh (.../unittest.sh) (revision 37ae4e443f7adbc7154a860694d50f3678fc0894) +++ build/unittest.sh (.../unittest.sh) (revision 358ed051dc954393b71670590b0f4684ac845630) @@ -484,7 +484,7 @@ # shellcheck disable=SC2016 echo 'latestRunDate=$(date +%Y-%m-%d)' >> "$inlineScriptForReport" # shellcheck disable=SC2016 - echo 'runReport=$(java -jar sonar-cnes-report-4.2.0.jar -p $sonarRunProject -t \ + 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" @@ -493,7 +493,7 @@ # Copy the created script into the Sonar server. Use sshpass -f to get the password from the file sshpass -f /opt/sonarQubeServerPass scp "$(pwd)/$inlineScriptForReport" dnavaei@192.168.10.41:~/ # ssh into the sonar server and run the copied shell script - reportAddress=$(sshpass -f /opt/sonarQubeServerPass ssh -t dnavaei@192.168.10.41 ./"$inlineScriptForReport") + reportAddress=$(sshpass -f /opt/sonarQubeServerPass ssh -t dnavaei@192.168.10.41 ./"$inlineScriptForReport" "$sonarRunProject") echo "Sonar created file: $reportAddress" # Copy the created SonarQube file from the sonar server to the remote directory