Merge "Remove unnecessary ssh-credentials defaults"
[ci-management.git] / jjb / honeycomb / include-raw-honeycomb-pkg-push.sh
1 #!/bin/bash
2 if [ "${OS}" == "centos7" ]; then
3
4     # Build the rpms
5     ./packaging/rpm/rpmbuild.sh
6
7     # Find the files
8     RPMS=$(find . -type f -iname '*.rpm')
9     SRPMS=$(find . -type f -iname '*.srpm')
10     SRCRPMS=$(find . -type f -name '*.src.rpm')
11     for i in $RPMS $SRPMS $SRCRPMS
12     do
13         push_rpm "$i"
14     done
15 elif [ "${OS}" == "ubuntu1404" ]; then
16
17     # Build the debs
18     ./packaging/deb/trusty/debuild.sh
19
20     # Find the files
21     DEBS=$(find . -type f -iname '*.deb')
22     for i in $DEBS
23     do
24         push_deb "$i"
25     done
26 elif [ "${OS}" == "ubuntu1604" ]; then
27
28     # Build the debs
29     ./packaging/deb/xenial/debuild.sh
30
31     # Find the files
32     DEBS=$(find . -type f -iname '*.deb')
33     for i in $DEBS
34     do
35         push_deb "$i"
36     done
37 fi