X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fnexus-iq-cli.sh;fp=shell%2Fnexus-iq-cli.sh;h=d12e6700440f709c332c248703665e3971fd206d;hb=a91e95c9486824aac728653da9c5f04e2a82e201;hp=0000000000000000000000000000000000000000;hpb=536325e5186cf8883d630feaea2d91591b39fd50;p=releng%2Fglobal-jjb.git diff --git a/shell/nexus-iq-cli.sh b/shell/nexus-iq-cli.sh new file mode 100644 index 00000000..d12e6700 --- /dev/null +++ b/shell/nexus-iq-cli.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2018 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## + +# This script downloads nexus-iq-cli-1.44.0-01.jar and uses it to perform an +# XC Evaluation or extended report which provides a scan of python files within +# the repo + +set +x +wget -nv https://download.sonatype.com/clm/scanner/${NEXUS_IQ_CLI_JAR} -O /tmp/${NEXUS_IQ_CLI_JAR} +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 . +rm cli-auth.txt