summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-17 16:37:21 +0000
committerGerrit Code Review <gerrit@openecomp.org>2017-02-17 16:37:21 +0000
commit93b644286cbc0706aab65e81fef5713b8272291a (patch)
tree105d0fc6aca3bdc69e1d473d05c9a3c46aa39283 /jjb
parent662f82a047b98fabe5ebcdce92a7cbcc885044ae (diff)
parentdae9639a0069f2fc1699d77de20876bced4ff27b (diff)
Merge "Fixes to script"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/dcae/include-raw-apod-cdap.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/jjb/dcae/include-raw-apod-cdap.sh b/jjb/dcae/include-raw-apod-cdap.sh
index d87b49ad0..0094fd6ac 100644
--- a/jjb/dcae/include-raw-apod-cdap.sh
+++ b/jjb/dcae/include-raw-apod-cdap.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Create a debian package and push to remote repo
#
-
+set -x
echo '===================== STARTING SCRIPT TO CREATE DEBIAN FILE ======================='
# Extract the username, password and path to the nexus repo from the maven settings file
USER=$(xpath -q -e "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE")
@@ -31,11 +31,10 @@ PACKAGE_GROUP_ID=$( \
cat ${WORKSPACE}/dcae-apod-buildtools/configs/package-cdap3vm.json | \
python -c 'import json,sys;print json.load(sys.stdin)["groupId"]')
OUTPUT_FILE="${PACKAGE_NAME_APPLICATION}_${PACKAGE_NAME_VERSION}.deb"
-OUTPUT_FILE_DATE_STAMPED= \
- "${PACKAGE_NAME_APPLICATION}_${PACKAGE_NAME_VERSION}-${DATE_STAMP}.deb"
+OUTPUT_FILE_DATE_STAMPED="${PACKAGE_NAME_APPLICATION}_${PACKAGE_NAME_VERSION}-${DATE_STAMP}.deb"
echo 'Package variables:'
-echo " STAGE_DIR = ${STATE_DIR}"
+echo " STAGE_DIR = ${STAGE_DIR}"
echo " OUTPUT_DIR = ${OUTPUT_DIR}"
echo " PACKAGE_BUILD_NUMBER = ${PACKAGE_BUILD_NUMBER}"
echo " PACKAGE_NAME_APPLICATION = ${PACKAGE_NAME_APPLICATION}"
@@ -63,10 +62,6 @@ echo "Creating debian package"
${WORKSPACE}/dcae-apod-buildtools/scripts/package -b debian -d ${STAGE_DIR} \
-o ${OUTPUT_DIR} -y package.json -B ${PACKAGE_BUILD_NUMBER} -v
-
-echo "Contents of output directory"
-ls -lR ${OUTPUT_DIR}
-
# The controller needs the debian packaged named
# dcae-cdap-small-hadoop_17.01.0-LATEST.deb so it can find and deploy it.
# In order to have a copy of each file built a copy of
@@ -77,13 +72,14 @@ ls -lR ${OUTPUT_DIR}
cp ${OUTPUT_DIR}/${OUTPUT_FILE_DATE_STAMPED} ${OUTPUT_DIR}/${OUTPUT_FILE}
-SEND_TO= \
-"${OPENECOMP_NEXUS_REPO}/org.openecomp.dcae.apod.cdap/deb-snapshots/${PACKAGE_GROUP_ID}/${OUTPUT_FILE}"
+echo "Contents of output directory"
+ls -lR ${OUTPUT_DIR}
+
+SEND_TO="${OPENECOMP_NEXUS_REPO}/org.openecomp.dcae.apod.cdap/deb-snapshots/${PACKAGE_GROUP_ID}/${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.cdap/deb-snapshots/${PACKAGE_GROUP_ID}/${OUTPUT_FILE_DATE_STAMPED}"
+SEND_TO="${OPENECOMP_NEXUS_REPO}/org.openecomp.dcae.apod.cdap/deb-snapshots/${PACKAGE_GROUP_ID}/${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}