X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fcmake-sonarqube.sh;h=f34f7d79962edea7cd96c90867b18e34b453e9f6;hb=a86c6e8d376c95aa00b179fce9d207e61c8f72d0;hp=0dd2cf554824d2961cfd734e14e9932aaa4aa093;hpb=c1ab7d08db987962c6c5c73abfaade4b5445d028;p=releng%2Fglobal-jjb.git diff --git a/shell/cmake-sonarqube.sh b/shell/cmake-sonarqube.sh index 0dd2cf55..f34f7d79 100644 --- a/shell/cmake-sonarqube.sh +++ b/shell/cmake-sonarqube.sh @@ -25,6 +25,13 @@ wget -q -O bw.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip unzip -q bw.zip sudo mv build-wrapper-* /opt/build-wrapper + +export SET_JDK_VERSION="${SET_JDK_VERSION:-openjdk11}" +echo "$SET_JDK_VERSION" +bash <(curl -s https://raw.githubusercontent.com/lfit/releng-global-jjb/master/shell/update-java-alternatives.sh) +# shellcheck disable=SC1091 +source /tmp/java.env + mkdir -p "$build_dir" cd "$build_dir" || exit 1