2 # PCIO_CO is a Jenkins Global Environment variable
6 echo "STARTING JVPP PACKAGECLOUD PUSH"
10 FACTER_OS=$(/usr/bin/facter operatingsystem)
12 if [ -f ~/.packagecloud ]; then
15 FACTER_LSBNAME=$(/usr/bin/facter lsbdistcodename)
16 DEBS=$(find ./build-root/packages/ -type f -iname '*.deb')
17 package_cloud push "${PCIO_CO}/${STREAM}/ubuntu/${FACTER_LSBNAME}/main/" ${DEBS}
20 FACTER_OSMAJREL=$(/usr/bin/facter operatingsystemmajrelease)
21 FACTER_ARCH=$(/usr/bin/facter architecture)
22 RPMS=$(find ./build-root/packages/ -type f -iregex '.*/.*\.\(s\)?rpm')
23 package_cloud push "${PCIO_CO}/${STREAM}/el/${FACTER_OSMAJREL}/os/${FACTER_ARCH}/" ${RPMS}