2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2019 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
12 # This script downloads wss-unified-agent-<version>.jar and uses it to perform
13 # a scan on the code whithin a repo based on the wss-unified-agent.config provided.
15 # DO NOT enable -u because $WSS_UNIFIED_AGENT_OPTIONS could be unbound.
16 # Ensure we fail the job if any steps fail.
19 echo "---> whitesource-unified-agent-cli.sh"
20 jar_location="/tmp/wss-unified-agent-$WSS_UNIFIED_AGENT_VERSION.jar"
21 wget -nv https://s3.amazonaws.com/unified-agent/wss-unified-agent-$WSS_UNIFIED_AGENT_VERSION.jar \
23 echo "---> Running WhiteSource Unified Agent CLI ..."
24 java -jar $jar_location -c wss-unified-agent.config \
25 -product $WSS_PRODUCT_NAME -project $WSS_PROJECT_NAME \
26 ${WSS_UNIFIED_AGENT_OPTIONS:-}