X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fnexus-iq-cli.sh;h=43021f82b63385a62b02c96bea02380d52fb827e;hb=6eefde1f463638b5021c2ec96eb67a017d379f1f;hp=d12e6700440f709c332c248703665e3971fd206d;hpb=a91e95c9486824aac728653da9c5f04e2a82e201;p=releng%2Fglobal-jjb.git diff --git a/shell/nexus-iq-cli.sh b/shell/nexus-iq-cli.sh index d12e6700..43021f82 100644 --- a/shell/nexus-iq-cli.sh +++ b/shell/nexus-iq-cli.sh @@ -14,8 +14,10 @@ # the repo set +x -wget -nv https://download.sonatype.com/clm/scanner/${NEXUS_IQ_CLI_JAR} -O /tmp/${NEXUS_IQ_CLI_JAR} +CLI_LOCATION="/tmp/nexus-iq-cli-${NEXUS_IQ_CLI_VERSION}.jar" +wget -nv https://download.sonatype.com/clm/scanner/nexus-iq-cli-${NEXUS_IQ_CLI_VERSION}.jar -O ${CLI_LOCATION} echo "-a" > cli-auth.txt echo "${CLM_USER}:${CLM_PASSWORD}" >> cli-auth.txt -java -jar /tmp/${NEXUS_IQ_CLI_JAR} @cli-auth.txt -xc -i ${CLM_PROJECT_NAME} -s https://nexus-iq.wl.linuxfoundation.org -t build . +java -jar ${CLI_LOCATION} @cli-auth.txt -xc -i ${CLM_PROJECT_NAME} -s https://nexus-iq.wl.linuxfoundation.org -t build . rm cli-auth.txt +rm ${CLI_LOCATION}