blob: 505c7698c13973a97a0c7873658da6972347c647 [file] [log] [blame]
lj141214da5542017-02-15 03:25:16 +00001#!/bin/bash
2# Create a debian package and push to remote repo
3#
4echo "============== STARTING SCRIPT TO CREATE DEBIAN FILES ================="
5
6export BUILD_NUMBER="${BUILD_ID}"
7export PATH=$PATH:${WORKSPACE}/buildtools/bin
8
9#export OPENECOMP_NEXUS_RAW="https://nexus.openecomp.org/content/sites/raw"
10export OPENECOMP_NEXUS_RAW="${NEXUSPROXY}/content/sites/raw"
11export OPENECOMP_NEXUS_USER=$(xpath -q -e \
12 "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE")
13export OPENECOMP_NEXUS_PASSWORD=$(xpath -q -e \
14 "//servers/server[id='ecomp-raw']/password/text()" "$SETTINGS_FILE")
15
16echo $OPENECOMP_NEXUS_RAW
17echo $OPENECOMP_NEXUS_USER
18echo $OPENECOMP_NEXUS_PASSWORD
19
20export REPACKAGEDEBIANUPLOAD="set -x; curl -k \
lj1412f046e102017-02-16 03:07:15 +000021 --user '${OPENECOMP_NEXUS_USER}:${OPENECOMP_NEXUS_PASSWORD}' \
lj141214da5542017-02-15 03:25:16 +000022 --upload-file '{0}' \
23 '${OPENECOMP_NEXUS_RAW}/org.openecomp.dcae/deb-snapshots/{2}/{1}'"
24export REPACKAGEDEBIANUPLOAD2="set -x; curl -k \
25 --user '${OPENECOMP_NEXUS_USER}:${OPENECOMP_NEXUS_PASSWORD}' \
26 --upload-file '{0}' \
27 '${OPENECOMP_NEXUS_RAW}/org.openecomp.dcae/deb-snapshots/{2}/{4}-LATEST.deb'"
28make debian
29echo "================= ENDING SCRIPT TO CREATE DEBIAN FILES ================="
30
31#echo "============= STARTING SCRIPT TO CREATE JAVADOCS FILES ================"
32#make upload-javadocs
33#echo "============= ENDING SCRIPT TO CREATE JAVADOCS FILES =================="