Try to push rpm/deb to package cloud in a single transaction
[ci-management.git] / jjb / vpp / include-raw-vpp-packagecloud-push.sh
1 #!/bin/bash
2
3 if [ "${OS}" == "ubuntu1404" ]; then
4     DEBS=$(find . -type f -iname '*.deb')
5     package_cloud push fdio/test/ubuntu/trusty/main ${DEBS}
6 elif [ "${OS}" == "ubuntu1604" ]; then
7     DEBS=$(find . -type f -iname '*.deb')
8     package_cloud push fdio/test/ubuntu/xenial/main ${DEBS}
9 elif [ "${OS}" == "centos7" ]; then
10     # Find the files
11     RPMS=$(find . -type f -iname '*.rpm')
12     SRPMS=$(find . -type f -iname '*.srpm')
13     SRCRPMS=$(find . -type f -name '*.src.rpm')
14     package_cloud push fdio/test/el/7/os/x86_64/ ${RPMS} ${SRPMS} ${SRCRPMS}
15 fi