summaryrefslogtreecommitdiffstats
path: root/jjb/vpp/include-raw-vpp-packagecloud-push.sh
blob: 8908d09c58efd6f27ed27246506a28dddf9e1f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ "${OS}" == "ubuntu1404" ]; then
    DEBS=$(find . -type f -iname '*.deb')
    package_cloud push fdio/test/ubuntu/trusty/main ${DEBS}
elif [ "${OS}" == "ubuntu1604" ]; then
    DEBS=$(find . -type f -iname '*.deb')
    package_cloud push fdio/test/ubuntu/xenial/main ${DEBS}
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')
    package_cloud push fdio/test/el/7/os/x86_64/ ${RPMS} ${SRPMS} ${SRCRPMS}
fi