#!/bin/bash
# basic build script example
set -e -o pipefail
-if [ "${OS}" == "ubuntu1404" ]; then
+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"
# Find the files
DEBS=$(find . -type f -iname '*.deb')
+ echo "Found DEBS=${DEBS}"
for i in $DEBS
do
push_deb "$i"
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
\ No newline at end of file
+fi