X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fwhitesource-unified-agent-cli.sh;h=6cfba8122aaf3a5a6d4e07847cf4ec11841f1b6a;hb=ff69c5d06f4d27f3784bd56c6006e380c95f797f;hp=750a1523cd42dd86eb03fd16a5d8b5a2faa770c3;hpb=5e69a04c8ff3dc6c0cefa392b6b60c626aaddf24;p=releng%2Fglobal-jjb.git diff --git a/shell/whitesource-unified-agent-cli.sh b/shell/whitesource-unified-agent-cli.sh index 750a1523..6cfba812 100644 --- a/shell/whitesource-unified-agent-cli.sh +++ b/shell/whitesource-unified-agent-cli.sh @@ -17,11 +17,11 @@ set -xe -o pipefail set -u echo "---> whitesource-unified-agent-cli.sh" -jar_location="/tmp/wss-unified-agent-$WSS_UNIFIED_AGENT_VERSION.jar" -wget -nv https://s3.amazonaws.com/unified-agent/wss-unified-agent-$WSS_UNIFIED_AGENT_VERSION.jar \ - -O $jar_location +jar_location="/tmp/wss-unified-agent-${WSS_UNIFIED_AGENT_VERSION}.jar" +wss_unified_agent_url="https://s3.amazonaws.com/unified-agent/wss-unified-agent-${WSS_UNIFIED_AGENT_VERSION}.jar" +wget -nv ${wss_unified_agent_url} -O ${jar_location} echo "---> Running WhiteSource Unified Agent CLI ..." -java -jar $jar_location -c $WSS_UNIFIED_AGENT_CONFIG \ - -product $WSS_PRODUCT_NAME -project $WSS_PROJECT_NAME \ - ${WSS_UNIFIED_AGENT_OPTIONS:-} -rm $jar_location +java -jar ${jar_location} -c wss-unified-agent.config \ + -product ${WSS_PRODUCT_NAME} -project ${WSS_PROJECT_NAME} \ + -projectVersion ${GERRIT_BRANCH} ${WSS_UNIFIED_AGENT_OPTIONS:-} +rm ${jar_location}