Enabled push of rpm/deb packages for nsh_sfc
[ci-management.git] / jjb / nsh_sfc / include-raw-nsh_sfc-pkg-push.sh
1 #!/bin/bash
2 # basic build script example
3 set -e -o pipefail
4 if [ "${OS}" == "ubuntu1404" ]; then
5     # Find the files
6     DEBS=$(find . -type f -iname '*.deb')
7     for i in $DEBS
8     do
9         push_deb "$i"
10     done
11
12     export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
13     export JAVAC=${JAVA_HOME}/bin/javac
14     export PATH=${JAVA_HOME}/bin/:${PATH}
15     cd nsh-plugin/build/java/jvpp
16     $MVN deploy \
17         -gs "$GLOBAL_SETTINGS_FILE" -s "$SETTINGS_FILE"
18     cd -
19
20 elif [ "${OS}" == "ubuntu1604" ]; then
21
22     # Find the files
23     DEBS=$(find . -type f -iname '*.deb')
24     for i in $DEBS
25     do
26         push_deb "$i"
27     done
28
29 elif [ "${OS}" == "centos7" ]; then
30     # Find the files
31     RPMS=$(find . -type f -iname '*.rpm')
32     SRPMS=$(find . -type f -iname '*.srpm')
33     SRCRPMS=$(find . -type f -name '*.src.rpm')
34     for i in $RPMS $SRPMS $SRCRPMS
35     do
36         push_rpm "$i"
37     done
38 fi