Update XC CLM job parameters 62/10162/11
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 20 Apr 2018 01:03:02 +0000 (18:03 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 23 Apr 2018 18:34:13 +0000 (18:34 +0000)
- Remove unused archive-artifacts log patterns
  - Many of these are Maven related and unused in Python.
- Adjust NEXUS_IQ_CLI_VERSION parameter name to unspecify
  CLI format.

Changes made in response to the comments in
I5e5c420539ab3a3e5b292620da4418c16d557221

Change-Id: I0dde9b18468d52574b969c1f83c93f8ff0950faa
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
jjb/lf-python-jobs.yaml
shell/nexus-iq-cli.sh

index fc644c0..fecaeff 100644 (file)
 
     archive-artifacts: >
       **/*.log
-      **/hs_err_*.log
-      **/target/**/feature.xml
-      **/target/failsafe-reports/failsafe-summary.xml
-      **/target/surefire-reports/*-output.txt
+    nexus-iq-cli-version: 1.44.0-01
 
     #####################
     # Job Configuration #
           branch: '{branch}'
           stream: '{stream}'
           lftools-version: '{lftools-version}'
-      - string:
-          name: NEXUS_IQ_CLI_JAR
-          default: nexus-iq-cli-1.44.0-01.jar
-          description: Nexus IQ CLI package to download and use.
-      - string:
-          name: ARCHIVE_ARTIFACTS
-          default: '{archive-artifacts}'
-          description: Artifacts to archive to the logs server.
 
     wrappers:
       - lf-infra-wrappers:
     # Job Configuration #
     #####################
 
+    parameters:
+      - string:
+          name: NEXUS_IQ_CLI_VERSION
+          default: '{nexus-iq-cli-version}'
+          description: Nexus IQ CLI package to download and use.
+
     triggers:
       # Build weekly on Saturdays
       - timed: 'H H * * 6'
index d12e670..43021f8 100644 (file)
 # 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}