From: Aric Gardner Date: Thu, 17 Sep 2020 16:01:38 +0000 (-0400) Subject: Need to export SET_JDK_VERSION X-Git-Tag: v0.57.4~5 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=59faa9977d726858902dcf513999616aaf6de7a5;hp=c4ab45e68f3d6b15ef604e4a0c8930d3da4e6bc8;p=releng%2Fglobal-jjb.git Need to export SET_JDK_VERSION This var is needed by the exteral script must export so that it is inherited. Signed-off-by: Aric Gardner Change-Id: I627e6ecb369a5f0dab1f047663d24ac8a07b6330 --- diff --git a/shell/cmake-sonar.sh b/shell/cmake-sonar.sh index e568a7a3..e64ca69c 100644 --- a/shell/cmake-sonar.sh +++ b/shell/cmake-sonar.sh @@ -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 diff --git a/shell/cmake-sonarqube.sh b/shell/cmake-sonarqube.sh index 1662e330..f34f7d79 100644 --- a/shell/cmake-sonarqube.sh +++ b/shell/cmake-sonarqube.sh @@ -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