diff options
author | Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org> | 2017-03-29 13:08:25 -0500 |
---|---|---|
committer | Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org> | 2017-04-17 12:58:40 -0500 |
commit | 5fbe770c61ba1e2a645f706a44bbe334f473c59f (patch) | |
tree | 555b7581bdb098c28212a316b8d0cdf3bca27de2 /jjb/scripts | |
parent | 37e84f5d156daeeedba0e8ee856e2307698a027e (diff) |
Configure VPP to publish to packagecloud.io
Added a packagecloud_push script to push artifacts to the
packagecloud.io repository
Added the stream-parameter and packagecloud_push script to the VPP merge
job to allow artifacts to be published to packagecloud repositories in
addition to Nexus repositories
Change-Id: I9076ee35a6d330579ba72aa19a455b3d7a22e7f5
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Diffstat (limited to 'jjb/scripts')
-rw-r--r-- | jjb/scripts/packagecloud_push.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/jjb/scripts/packagecloud_push.sh b/jjb/scripts/packagecloud_push.sh new file mode 100644 index 000000000..805cf1296 --- /dev/null +++ b/jjb/scripts/packagecloud_push.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# PCIO_CO is a Jenkins Global Environment variable + +FACTER_OS=$(/usr/bin/facter operatingsystem) + +case "$FACTER_OS" in + Ubuntu) + FACTER_LSBNAME=$(/usr/bin/facter lsbdistcodename) + DEBS=$(find . -type f -iname '*.deb') + package_cloud push "${PCIO_CO}/${STREAM}/ubuntu/${FACTER_LSBNAME}/main/" ${DEBS} + ;; + CentOS) + FACTER_OSMAJREL=$(/usr/bin/facter operatingsystemmajrelease) + FACTER_ARCH=$(/usr/bin/facter architecture) + RPMS=$(find . -type f -iregex '.*/.*\.\(s\)?rpm') + package_cloud push "${PCIO_CO}/${STREAM}/el/${FACTER_OSMAJREL}/os/${FACTER_ARCH}/" ${RPMS} + ;; +esac |