upgrade sonar scanner to 3.3.0; upload coverage results generated by bazel
Change-Id: I5ad8b20e32d3487b68b06a179af6954069c63851
diff --git a/jjb/onos/onos-sonar.sh b/jjb/onos/onos-sonar.sh
index 5bf010a..436db6b 100644
--- a/jjb/onos/onos-sonar.sh
+++ b/jjb/onos/onos-sonar.sh
@@ -9,7 +9,7 @@
PATH=$PATH:/home/jenkins/bin
# download and install Sonar scanner
-SONAR_SCANNER_VERSION=3.0.3.778
+SONAR_SCANNER_VERSION=3.3.0.1492
curl -L -o /tmp/sonar-scanner-cli.zip -X GET http://central.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/$SONAR_SCANNER_VERSION/sonar-scanner-cli-$SONAR_SCANNER_VERSION.zip
unzip /tmp/sonar-scanner-cli.zip
@@ -20,4 +20,4 @@
tools/build/onos-prepare-sonar
# Upload coverage to Sonar
-sonar-scanner-$SONAR_SCANNER_VERSION/bin/sonar-scanner
+cd bazel-genfiles/sonar-project && $ONOS_ROOT/sonar-scanner-$SONAR_SCANNER_VERSION/bin/sonar-scanner