87984679a4d2f4c7a055b2bfde22cee9c8257c56
[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     for i in $DEBS
6     do
7         package_cloud push fdio/test/ubuntu/trusty/main "$i"
8     done
9 elif [ "${OS}" == "ubuntu1604" ]; then
10     DEBS=$(find . -type f -iname '*.deb')
11     for i in $DEBS
12     do
13         package_cloud push fdio/test/ubuntu/xenial/main "$i"
14     done
15 elif [ "${OS}" == "centos7" ]; then
16     # Find the files
17     RPMS=$(find . -type f -iname '*.rpm')
18     SRPMS=$(find . -type f -iname '*.srpm')
19     SRCRPMS=$(find . -type f -name '*.src.rpm')
20     for i in $RPMS $SRPMS $SRCRPMS
21     do
22         package_cloud push fdio/test/centos/7/os/x86_64/ "$i"
23     done
24 fi