diff --git a/sbin/build.sh b/sbin/build.sh index b883a0cbb..b11f5b53d 100755 --- a/sbin/build.sh +++ b/sbin/build.sh @@ -745,17 +745,19 @@ executeTemplatedFile() { mkdir -p ${PRODUCT_HOME}/lib/serverless cp serverless-adapter/target/serverless-adapter-0.1.jar ${PRODUCT_HOME}/lib/serverless/serverless-adapter.jar cp serverless-adapter/output/libloadclassagent.so ${PRODUCT_HOME}/lib/serverless/ - if [ "$(arch)" = "x86_64" ];then + if [ -z "`echo ${BUILD_CONFIG[BRANCH]} | grep standard`" ];then + if [ "$(arch)" = "x86_64" ];then local criuDownloadUrl=$(curl -s https://api.github.com/repos/dragonwell-project/criu/releases/latest | grep -i browser_download_url | grep \-x64 | cut -d '"' -f 4) - elif [ "$(arch)" = "aarch64" ];then + elif [ "$(arch)" = "aarch64" ];then local criuDownloadUrl=$(curl -s https://api.github.com/repos/dragonwell-project/criu/releases/latest | grep -i browser_download_url | grep \-aarch64 | cut -d '"' -f 4) - fi - if [ -n "${criuDownloadUrl}" ];then + fi + if [ -n "${criuDownloadUrl}" ];then rm -rf criu* curl -OLSk -C - --retry 5 ${criuDownloadUrl} -o criu.tar.gz tar zxf criu.tar.gz chmod +x criu mv criu ${PRODUCT_HOME}/lib/ + fi fi elif [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" == "${JDK8_CORE_VERSION}" ] && [ -n "`echo ${BUILD_CONFIG[BUILD_FULL_NAME]} | grep -E 'linux-x86_64|linux-aarch64'`" ]; then PRODUCT_HOME=$(ls -d ${PWD}/build/*/images/${BUILD_CONFIG[JDK_PATH]})