Merge "gnocchi: fix var for setting the Gnocchi branch"
This commit is contained in:
commit
02456d0d9e
@ -74,17 +74,17 @@
|
||||
fi
|
||||
|
||||
case "{oldbranch}" in
|
||||
"1.x") export GRENADE_OLD_BRANCH=stable/1.3;;
|
||||
"1.x") export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/1.3;;
|
||||
"2.x")
|
||||
STABLE_BRANCH=${{ZUUL_BRANCH#stable/}}
|
||||
if [ "${{STABLE_BRANCH}}" != "${{ZUUL_BRANCH}}" ]; then
|
||||
# We are on stable branch
|
||||
MAJOR=${{STABLE_BRANCH%.?}}
|
||||
MINOR=${{STABLE_BRANCH#?.}}
|
||||
export GRENADE_OLD_BRANCH=stable/${{MAJOR}}.$((MINOR - 1))
|
||||
export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/${{MAJOR}}.$((MINOR - 1))
|
||||
else
|
||||
# We are on master
|
||||
export GRENADE_OLD_BRANCH=stable/2.1
|
||||
export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/2.1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user