Need to export SET_JDK_VERSION 12/65512/1
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 17 Sep 2020 16:01:38 +0000 (12:01 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Thu, 17 Sep 2020 16:01:38 +0000 (12:01 -0400)
This var is needed by the exteral script
must export so that it is inherited.

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I627e6ecb369a5f0dab1f047663d24ac8a07b6330

shell/cmake-sonar.sh
shell/cmake-sonarqube.sh

index e568a7a..e64ca69 100644 (file)
@@ -20,7 +20,7 @@ make_opts="${MAKE_OPTS:-}"
 
 set -ex -o pipefail
 
-SET_JDK_VERSION="${SET_JDK_VERSION:-openjdk11}"
+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
index 1662e33..f34f7d7 100644 (file)
@@ -26,7 +26,7 @@ unzip -q bw.zip
 sudo mv build-wrapper-* /opt/build-wrapper
 
 
-SET_JDK_VERSION="${SET_JDK_VERSION:-openjdk11}"
+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