diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2020-11-12 15:00:50 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-11-12 15:00:50 -0500 |
commit | 3ac7db925af0700306900430bebdfe794a0acb67 (patch) | |
tree | 975364a6210922305c3f85bee89ea1e0a8fb2043 | |
parent | 5db1bc69a5ed3037637a12b989380da5380abdef (diff) |
Fix package_cloud push of vpp-ext-deps
- Fix regression in previous change to packagecloud_push.sh
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: Idfb47bd49bc59467ba3f28499edcdd41a00d04ce
-rw-r--r-- | jjb/scripts/packagecloud_push.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jjb/scripts/packagecloud_push.sh b/jjb/scripts/packagecloud_push.sh index d294e3128..af3bf48ff 100644 --- a/jjb/scripts/packagecloud_push.sh +++ b/jjb/scripts/packagecloud_push.sh @@ -35,7 +35,7 @@ if [ -f ~/.packagecloud ]; then push_cmd="package_cloud push ${PCIO_CO}/${STREAM}/debian/${FACTER_LSBNAME}/main/ ${DEBS}" EXT_DEPS_DEB=$(find . -type f -iname 'vpp-ext-deps*.deb') if [ -n "$EXT_DEPS_DEB" ] ; then - push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/debian/${FACTER_LSBNAME}/main/ ${EXT_DEPS_DEB} || true" + push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/debian/${FACTER_LSBNAME}/main/ ${EXT_DEPS_DEB}" fi ;; Ubuntu) @@ -44,7 +44,7 @@ if [ -f ~/.packagecloud ]; then push_cmd="package_cloud push ${PCIO_CO}/${STREAM}/ubuntu/${FACTER_LSBNAME}/main/ ${DEBS}" EXT_DEPS_DEB=$(find . -type f -iname 'vpp-ext-deps*.deb') if [ -n "$EXT_DEPS_DEB" ] ; then - push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/ubuntu/${FACTER_LSBNAME}/main/ ${EXT_DEPS_DEB} || true" + push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/ubuntu/${FACTER_LSBNAME}/main/ ${EXT_DEPS_DEB}" fi ;; CentOS) @@ -54,7 +54,7 @@ if [ -f ~/.packagecloud ]; then push_cmd="package_cloud push ${PCIO_CO}/${STREAM}/el/${FACTER_OSMAJREL}/os/${FACTER_ARCH}/ ${RPMS}" EXT_DEPS_RPM=$(find . -type f -iname 'vpp-ext-deps*.rpm') if [ -n "$EXT_DEPS_RPM" ] ; then - push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/el/${FACTER_OSMAJREL}/os/${FACTER_ARCH}/ ${EXT_DEPS_RPM} || true" + push_ext_deps_cmd="package_cloud push ${PCIO_CO}/${STREAM}/el/${FACTER_OSMAJREL}/os/${FACTER_ARCH}/ ${EXT_DEPS_RPM}" fi ;; *) @@ -71,7 +71,10 @@ if [ -f ~/.packagecloud ]; then else $push_cmd if [ -n "$push_ext_deps_cmd" ] ; then + # Don't fail script if vpp-ext-deps push fails. + set +e $push_ext_deps_cmd + set -e fi fi else |