Merge "Modify logs publisher"
[ci-management.git] / jjb / jvpp / include-raw-jvpp-maven-push.sh
1 #!/bin/bash
2 set -xe -o pipefail
3 echo "*******************************************************************"
4 echo "* STARTING PUSH OF JVPP PACKAGES TO REPOS"
5 echo "* NOTHING THAT HAPPENS BELOW THIS POINT IS RELATED TO BUILD FAILURE"
6 echo "*******************************************************************"
7
8 [[ "$MVN" ]] || MVN="/opt/apache/maven/bin/mvn"
9 GROUP_ID="io.fd.${PROJECT}"
10 BASEURL="${NEXUSPROXY}/content/repositories/fd.io."
11 BASEREPOID='fdio-'
12
13 if [[ "${OS}" == "ubuntu1604" ]]; then
14     # Find the files
15     DEBS=$(find ./build-root/packages/ -type f -iname '*.deb')
16
17     for i in ${DEBS}
18     do
19         push_deb "$i"
20     done
21 elif [[ "${OS}" == "ubuntu1804" ]]; then
22     # Find the files
23     JARS=$(find ./java -type f -iname '*.jar')
24     DEBS=$(find ./build-root/packages/ -type f -iname '*.deb')
25     for i in ${JARS}
26     do
27         push_jar "$i"
28     done
29
30     for i in ${DEBS}
31     do
32         push_deb "$i"
33     done
34 elif [[ "${OS}" == "centos7" ]]; then
35     # Find the files
36     RPMS=$(find ./build-root/packages/ -type f -iname '*.rpm')
37     SRPMS=$(find ./build-root/packages/ -type f -iname '*.srpm')
38     SRCRPMS=$(find ./build-root/packages/ -type f -name '*.src.rpm')
39     for i in ${RPMS} ${SRPMS} ${SRCRPMS}
40     do
41         push_rpm "$i"
42     done
43 fi
44 # vim: ts=4 sw=4 sts=4 et ft=sh :