X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Flicense-check.sh;h=31290c3acfeac928cdce8e838917c18e5d5d7eff;hb=7c8c0136203f61317e6904030f86dfbd5a6c402e;hp=5b43072382b44706f0f6d4b4cf1ef351801547e2;hpb=cbe094073500c7bfdcc4131d676e9efe265f9024;p=releng%2Fglobal-jjb.git diff --git a/shell/license-check.sh b/shell/license-check.sh index 5b430723..31290c3a 100644 --- a/shell/license-check.sh +++ b/shell/license-check.sh @@ -45,7 +45,11 @@ if hash lhc 2>/dev/null; then else echo "License Header Checker is not installed. Installing..." mkdir "$WORKSPACE/bin" - wget -nv -O "/tmp/lhc.tar.gz" "https://nexus.opendaylight.org/content/repositories/hosted_installers/org/linuxfoundation/lhc/${lhc_version}/lhc-${lhc_version}.tar.gz" + NEXUS_BASEURL="https://nexus.opendaylight.org/" + NEXUS_PATH="content/repositories/hosted_installers/org/linuxfoundation/" + NEXUS_LHC="lhc/${lhc_version}/lhc-${lhc_version}.tar.gz" + NEXUS_URL="${NEXUS_BASEURL}${NEXUS_PATH}${NEXUS_LHC}" + wget -nv -O "/tmp/lhc.tar.gz" "$NEXUS_URL" tar -zxvf /tmp/lhc.tar.gz -C "$WORKSPACE/bin" chmod +x "$WORKSPACE/bin/lhc" export PATH="$WORKSPACE/bin:$PATH"