Fetch the meta/openstack ref from gerrit in tarball jobs.
Don't fetch from origin because zuul may not have it. Change-Id: I58249bf2f3fbee6b37f62f419df035d92b8bc125 Reviewed-on: https://review.openstack.org/18334 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
73c1c8e163
commit
26ce53321a
@ -2,8 +2,9 @@
|
||||
|
||||
# In case we start doing something more sophisticated with other refs
|
||||
# later (such as tags).
|
||||
BRANCH=$GERRIT_REFNAME
|
||||
BRANCH=$ZUUL_REF
|
||||
BRANCH_PATH=`echo $BRANCH | tr / -`
|
||||
META_URL="https://review.openstack.org/p"
|
||||
|
||||
if [ $BRANCH == "milestone-proposed" ]
|
||||
then
|
||||
@ -19,7 +20,7 @@ PROJECT=$1
|
||||
|
||||
find_next_version() {
|
||||
datestamp="${datestamp:-$(date +%Y%m%d)}"
|
||||
git fetch origin +refs/meta/*:refs/remotes/meta/*
|
||||
git fetch $META_URL/$ZUUL_PROJECT +refs/meta/*:refs/remotes/meta/*
|
||||
if [[ $BRANCH =~ ^stable/.*$ ]]
|
||||
then
|
||||
milestonever=""
|
||||
|
Loading…
x
Reference in New Issue
Block a user