Make link to tar from BUNDLEURL, use for build-rpm 97/52697/3
authorDaniel Farrell <dfarrell@redhat.com>
Fri, 3 Mar 2017 01:18:00 +0000 (20:18 -0500)
committerDaniel Farrell <dfarrell@redhat.com>
Tue, 7 Mar 2017 03:27:20 +0000 (22:27 -0500)
commit5d9c3a4f61ac4f85887fda3e807b076648cf0d57
tree41b343e4d537afc57a900419c7f508d131c38b50
parent815a9c5b7ac0298376d2904419bb1b6898472ab5
Make link to tar from BUNDLEURL, use for build-rpm

RPM specfiles typically use tarball build inputs, not zips. When
triggering from autorelease, we need to convert the BUNDLEURL link to
the zip-archive distro into one for the tarball distro.

Could also do this by creating a new variable parallel to BUNDLEURL for
passing a link to the tarball, something like BUNDLETARURL. I started on
this in [1] but think it's not worth the complexity, unlikely to be
reused.

[1]: https://git.opendaylight.org/gerrit/#/c/52693/

This fixes:

trello.com/c/qcwHU9u1/446-fix-build-rpm-jobs-triggered-by-autorelease

Change-Id: Ic9b4a998a4f823f4a3a3b1ef3ac0f604cf03565f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
jjb/packaging/include-raw-build-rpm.sh