Use ZUUL_REFNAME to get branch info for reprepro-import

We incorrectly used ZUUL_BRANCH to extract branch info. As pointed out
on IRC, we should be using ZUUL_REFNAME.

Change-Id: Ieefbb39ddf31355d6a74ac3b4d68887d997270b0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-07-13 17:21:02 -04:00
parent 7f5d5af617
commit d5238706d9
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -5,7 +5,7 @@
#!/bin/bash -xe #!/bin/bash -xe
AFS_DIR=/afs/.openstack.org/mirror/deb-openstack AFS_DIR=/afs/.openstack.org/mirror/deb-openstack
BRANCH=$(echo $ZUUL_BRANCH | cut -d/ -f2) BRANCH=$(echo $ZUUL_REFNAME | cut -d/ -f2)
PACKAGE_DIR=$WORKSPACE/packages PACKAGE_DIR=$WORKSPACE/packages
PROJECT=$(echo $ZUUL_PROJECT | cut -d/ -f2) PROJECT=$(echo $ZUUL_PROJECT | cut -d/ -f2)
URL=http://tarballs.openstack.org/packaging-deb/$PROJECT/uploads/$ZUUL_COMMIT URL=http://tarballs.openstack.org/packaging-deb/$PROJECT/uploads/$ZUUL_COMMIT