lj1412 | 14da554 | 2017-02-15 03:25:16 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Create a debian package and push to remote repo |
| 3 | # |
| 4 | echo "============== STARTING SCRIPT TO CREATE DEBIAN FILES =================" |
| 5 | |
| 6 | export BUILD_NUMBER="${BUILD_ID}" |
| 7 | export PATH=$PATH:${WORKSPACE}/buildtools/bin |
| 8 | |
| 9 | #export OPENECOMP_NEXUS_RAW="https://nexus.openecomp.org/content/sites/raw" |
| 10 | export OPENECOMP_NEXUS_RAW="${NEXUSPROXY}/content/sites/raw" |
| 11 | export OPENECOMP_NEXUS_USER=$(xpath -q -e \ |
| 12 | "//servers/server[id='ecomp-raw']/username/text()" "$SETTINGS_FILE") |
| 13 | export OPENECOMP_NEXUS_PASSWORD=$(xpath -q -e \ |
| 14 | "//servers/server[id='ecomp-raw']/password/text()" "$SETTINGS_FILE") |
| 15 | |
| 16 | echo $OPENECOMP_NEXUS_RAW |
| 17 | echo $OPENECOMP_NEXUS_USER |
| 18 | echo $OPENECOMP_NEXUS_PASSWORD |
| 19 | |
| 20 | export REPACKAGEDEBIANUPLOAD="set -x; curl -k \ |
| 21 | --user ${OPENECOMP_NEXUS_USER}:${OPENECOMP_NEXUS_PASSWORD}' \ |
| 22 | --upload-file '{0}' \ |
| 23 | '${OPENECOMP_NEXUS_RAW}/org.openecomp.dcae/deb-snapshots/{2}/{1}'" |
| 24 | export 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'" |
| 28 | make debian |
| 29 | echo "================= 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 ==================" |