aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/gate_run.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gate_run.sh b/tools/gate_run.sh
index 526893d37..46e9616f3 100755
--- a/tools/gate_run.sh
+++ b/tools/gate_run.sh
@@ -77,7 +77,12 @@ function collect_logs {
function pack_registry {
sudo mkdir "images"
- BRANCH=$(echo "$ZUUL_BRANCH" | cut -d/ -f2)
+ if [ -z "$ZUUL_BRANCH" ]; then
+ BRANCH=$(echo $ZUUL_BRANCH | cut -d/ -f2)
+ else
+ BRANCH=$(echo $ZUUL_REFNAME | cut -d/ -f2)
+ fi
+
FILENAME=${BASE_DISTRO}-${INSTALL_TYPE}-registry-${BRANCH}.tar.gz
sudo docker stop registry
sudo tar -zcf "images/$FILENAME" -C /tmp/kolla_registry .