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'
# 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}