X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fnsh_sfc%2Finclude-raw-nsh_sfc-pkg-push.sh;h=500433e4c6147b9cba60b7267996bbee0ffee31e;hb=dff466bedef578e57b42ddc1864a51bbd40463a8;hp=79a3827d8828eb1673a4f0118212db1b1f2466cc;hpb=a3b38102280f05eeb46695d70f10ede07fa7e4af;p=ci-management.git 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 79a3827d8..500433e4c 100644 --- a/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh +++ b/jjb/nsh_sfc/include-raw-nsh_sfc-pkg-push.sh @@ -1,10 +1,44 @@ #!/bin/bash # basic build script example set -e -o pipefail +echo "Looking for jars/debs/rpms to publish" +if [ "${OS}" == "ubuntu1604" ]; then + # Find the files + DEBS=$(find . -type f -iname '*.deb') + echo "Found DEBS=${DEBS}" + for i in $DEBS + do + push_deb "$i" + done -if [ "${OS}" == "ubuntu1404" ]; then + export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ + export JAVAC=${JAVA_HOME}/bin/javac + export PATH=${JAVA_HOME}/bin/:${PATH} cd nsh-plugin/build/java/jvpp $MVN deploy \ -gs "$GLOBAL_SETTINGS_FILE" -s "$SETTINGS_FILE" cd - -fi \ No newline at end of file + +elif [ "${OS}" == "ubuntu1604" ]; then + + # Find the files + DEBS=$(find . -type f -iname '*.deb') + echo "Found DEBS=${DEBS}" + 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') + echo "Found RPMS=${RPMS}" + echo "Found SRPMS=${SRPMS}" + echo "Found SRCRPMS=${SRCRPMS}" + for i in $RPMS $SRPMS $SRCRPMS + do + push_rpm "$i" + done +fi