Index: build/unittest.sh =================================================================== diff -u -rf0dc2b31a1686ea355f5fd475358ced9e252bf5d -rb75245d66f9b5da3bb8f218be9c49f99feed977d --- build/unittest.sh (.../unittest.sh) (revision f0dc2b31a1686ea355f5fd475358ced9e252bf5d) +++ build/unittest.sh (.../unittest.sh) (revision b75245d66f9b5da3bb8f218be9c49f99feed977d) @@ -436,6 +436,7 @@ local currentDir="$(pwd)" local sonarFolder="SonarQube" local buildWrapperJson="Build_Wrapper_JSON" + local sonarLogs="SonarQubeLogs.log" echo " ------------------------------ Running SonarQube test" echo "Current squish location $(pwd)" mkdir "$sonarFolder" @@ -445,19 +446,26 @@ "${buildSpecs[$COMMON_CHECKOUT_INDEX]}" cd application || return echo "New squish location $(pwd)" + touch "$sonarLogs" ./alarmMapping.sh "/opt/Qt5.15.10/5.15.10/gcc_64"/bin/qmake - /opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir "$currentDir"/"$sonarFolder"/"$buildWrapperJson" make -j8 + /opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir "$currentDir"/"$sonarFolder"/"$buildWrapperJson" \ + make -j8 | tee -a "$sonarLogs" cp "$currentDir"/"$sonarFolder"/"$buildWrapperJson"/build-wrapper-dump.json "$(pwd)" /opt/sonar-scanner-4.8.0.2856-linux/bin/sonar-scanner -Dsonar.projectKey=UI-SonarRun -Dsonar.sources=. \ -Dsonar.cfamily.build-wrapper-output=. \ -Dsonar.cfamily.threads=4 -Dsonar.host.url=http://192.168.10.41:9000 \ - -Dsonar.login=admin -Dsonar.password=WonderFirst23@ + -Dsonar.login=admin -Dsonar.password=WonderFirst23@ | tee -a "$sonarLogs" + cp -r "$sonarLogs" "$REPORT_DIR" + + sshpass -p "WonderFirst23@" ssh dnavaei@192.168.10.41 + exit + cd "$currentDir" || return }