Remove upload for verify
Change-Id: I3267428c712580542f44c62a2050495c61691c65
Signed-off-by: Lisa Revel <lr0306@att.com>
diff --git a/jjb/dcae/script-apod-analytics-verify.sh b/jjb/dcae/script-apod-analytics-verify.sh
index e12dfa4..6ce3edf 100755
--- a/jjb/dcae/script-apod-analytics-verify.sh
+++ b/jjb/dcae/script-apod-analytics-verify.sh
@@ -8,7 +8,7 @@
# Extract the username and password and URL for the nexus repo"
USER=$(xpath -q -e "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE")
PASS=$(xpath -q -e "//servers/server[id='ecomp-raw']/password/text()" "$SETTINGS_FILE")
-OPENECOMP_NEXUS_REPO="${NEXUSPROXY}/content/sites/raw"
+REPO="${NEXUSPROXY}/content/sites/raw"
#Create a netrc file for use with curl
NETRC=$(mktemp)
@@ -51,7 +51,10 @@
mkdir -p ${OUTPUT_DIR}
echo 'Copying jar file to stage'
-cp ${WORKSPACE}/dcae-analytics-tca/target/dcae-analytics-tca-${POM_VERSION}.jar \
+JAR_FILE=$(ls ${WORKSPACE}/dcae-analytics-tca/target/ | \
+ grep dcae-analytics-tca- | grep -v javadoc | grep -v sources)
+
+cp ${WORKSPACE}/dcae-analytics-tca/target/${JAR_FILE} \
${STAGE_DIR}/stage/opt/app/cdap-apps
echo 'Copying json file to stage'
@@ -72,19 +75,11 @@
# date stamp and build number on it.
# For example: dcae-analytics-tca_17.01.0-YYYYMMDDHHMMSS-XXX.deb
# Both files will then be uploaded to the repository.
+# Verify script does not upload to Nexus repo.
cp ${OUTPUT_DIR}/${OUTPUT_FILE_DATE_STAMPED} ${OUTPUT_DIR}/${OUTPUT_FILE}
echo 'Contents of output directory'
ls -lR ${OUTPUT_DIR}
-SEND_TO="${OPENECOMP_NEXUS_REPO}/org.openecomp.dcae.apod.analytics/deb-snapshots/${OUTPUT_FILE}"
-echo "Sending ${OUTPUT_DIR}/${OUTPUT_FILE} to Nexus Repo: ${SEND_TO}"
-curl -vkn --netrc-file "${NETRC}" --upload-file ${OUTPUT_DIR}/${OUTPUT_FILE} ${SEND_TO}
-
-SEND_TO="${OPENECOMP_NEXUS_REPO}/org.openecomp.dcae.apod.analytics/deb-snapshots/${OUTPUT_FILE_DATE_STAMPED}"
-
-echo "Sending ${OUTPUT_DIR}/${OUTPUT_FILE_DATE_STAMPED} to Nexus Repo: ${SEND_TO}"
-curl -vkn --netrc-file "${NETRC}" --upload-file ${OUTPUT_DIR}/${OUTPUT_FILE_DATE_STAMPED} ${SEND_TO}
-
echo '================ ENDING SCRIPT TO CREATE DEBIAN FILE ===================='