Index: build/unittest.sh =================================================================== diff -u -rb28c3bf15c9cc18ba4ee4d9b2f365bc058790124 -r2657bb855fa9bbb05646bc92f5b01db4c00ca1f2 --- build/unittest.sh (.../unittest.sh) (revision b28c3bf15c9cc18ba4ee4d9b2f365bc058790124) +++ build/unittest.sh (.../unittest.sh) (revision 2657bb855fa9bbb05646bc92f5b01db4c00ca1f2) @@ -452,8 +452,9 @@ # Create a log file and inline shell script touch "$sonarLogs" touch "$inlineScriptForReport" + # Get the last tag on the head of the repo, if there is none, just get the last commit ID and use it as the name of + # the SonarQube project version headTagOrCommit=$(git describe --exact-match HEAD) - echo "UI head: $headTagOrCommit" if [[ -z "$headTagOrCommit" ]]; then headTagOrCommit=$(git rev-parse HEAD); fi # The inline shell script is created here and is copied into the Sonar server and run the report. Set the script as # executable @@ -477,7 +478,6 @@ cd ../cloudsync || return headTagOrCommit=$(git describe --exact-match HEAD) - echo "Cloud head: $headTagOrCommit" if [[ -z "$headTagOrCommit" ]]; then headTagOrCommit=$(git rev-parse HEAD); fi # Copy the created build wrapper json file into the application folder cp "$currentDir"/"$sonarFolder"/"$buildWrapperJson"/build-wrapper-dump.json "$(pwd)"