summaryrefslogtreecommitdiffstats
path: root/jjb/dcae/script-pgaas-verify.sh
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-17 22:21:06 +0000
committerLusheng Ji <lji@research.att.com>2017-02-18 19:46:08 +0000
commitf75ed99361b3dfa731583352259525b17aaeec89 (patch)
tree7d034cc7b0cc81eabfbc7710734f52fe21895333 /jjb/dcae/script-pgaas-verify.sh
parent93b644286cbc0706aab65e81fef5713b8272291a (diff)
new script template and pgass' use
Change-Id: I7e08f11433690e48a8751184abc955d3d5ec7446 Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'jjb/dcae/script-pgaas-verify.sh')
-rwxr-xr-xjjb/dcae/script-pgaas-verify.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/jjb/dcae/script-pgaas-verify.sh b/jjb/dcae/script-pgaas-verify.sh
new file mode 100755
index 000000000..51c802f60
--- /dev/null
+++ b/jjb/dcae/script-pgaas-verify.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Create a debian package and push to remote repo
+#
+echo "============== STARTING SCRIPT TO CREATE DEBIAN FILES ================="
+
+export BUILD_NUMBER="${BUILD_ID}"
+export PATH=$PATH:${WORKSPACE}/buildtools/bin
+
+export NEXUS_RAW="${NEXUSPROXY}/content/sites/raw"
+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")
+
+# Create a netrc file for use with curl
+export NETRC=$(mktemp)
+echo "machine nexus.openecomp.org login ${USER} password ${PASS}" > "${NETRC}"
+
+echo $NEXUS_RAW
+
+
+REPO="${NEXUS_RAW}/org.openecomp.dcae.devnull/"
+
+export REPACKAGEDEBIANUPLOAD="set -x; curl -k --netrc-file '${NETRC}' \
+ --upload-file '{0}' '${REPO}/{2}/{1}'"
+export REPACKAGEDEBIANUPLOAD2="set -x; curl -k --netrc-file '${NETRC}' \
+ --upload-file '{0}' '${REPO}/{2}/{4}-LATEST.deb'"
+make debian
+echo "================= ENDING SCRIPT TO CREATE DEBIAN FILES ================="
+
+#echo "============= STARTING SCRIPT TO CREATE JAVADOCS FILES ================"
+#make upload-javadocs
+#echo "============= ENDING SCRIPT TO CREATE JAVADOCS FILES =================="