summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanh Ha <thanh.ha@linuxfoundation.org>2016-09-16 22:50:42 +0000
committerGerrit Code Review <gerrit@fd.io>2016-09-16 22:50:42 +0000
commit646fbd49f39198149e8e995b98d2e7c6214d956f (patch)
tree29e58355e9bd110a2cbde3963e3d9fb6e0a85436
parentcf1e34b144f2af120bfa86f0a5cb6e7a2a86cb54 (diff)
parent36985f691b661f5beb1016f79d0a4ea26854fd36 (diff)
Merge "Enabled push of rpm/deb packages for nsh_sfc"
-rw-r--r--jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh b/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh
index 0f30ff4c9..c4f4885b0 100644
--- a/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh
+++ b/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh
@@ -2,6 +2,13 @@
# basic build script example
set -e -o pipefail
if [ "${OS}" == "ubuntu1404" ]; then
+ # Find the files
+ DEBS=$(find . -type f -iname '*.deb')
+ for i in $DEBS
+ do
+ push_deb "$i"
+ done
+
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
export JAVAC=${JAVA_HOME}/bin/javac
export PATH=${JAVA_HOME}/bin/:${PATH}
@@ -9,4 +16,23 @@ if [ "${OS}" == "ubuntu1404" ]; then
$MVN deploy \
-gs "$GLOBAL_SETTINGS_FILE" -s "$SETTINGS_FILE"
cd -
+
+elif [ "${OS}" == "ubuntu1604" ]; then
+
+ # Find the files
+ DEBS=$(find . -type f -iname '*.deb')
+ for i in $DEBS
+ do
+ push_deb "$i"
+ done
+
+elif [ "${OS}" == "centos7" ]; then
+ # Find the files
+ RPMS=$(find . -type f -iname '*.rpm')
+ SRPMS=$(find . -type f -iname '*.srpm')
+ SRCRPMS=$(find . -type f -name '*.src.rpm')
+ for i in $RPMS $SRPMS $SRCRPMS
+ do
+ push_rpm "$i"
+ done
fi \ No newline at end of file