Enabled push of rpm/deb packages for nsh_sfc 25/2925/1
authorEd Warnicke <eaw@cisco.com>
Fri, 16 Sep 2016 19:25:23 +0000 (12:25 -0700)
committerEd Warnicke <eaw@cisco.com>
Fri, 16 Sep 2016 19:25:23 +0000 (12:25 -0700)
Change-Id: Ie3aa47c7075e90f7a1e528a0dff96ab10224676f
Signed-off-by: Ed Warnicke <eaw@cisco.com>
jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh

index 0f30ff4..c4f4885 100644 (file)
@@ -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