diff options
| author | Michal (inc0) Jastrzebski <inc007@gmail.com> | 2017-07-19 14:00:03 -0700 |
|---|---|---|
| committer | Serguei Bezverkhi <sbezverk@cisco.com> | 2017-07-19 22:54:18 -0400 |
| commit | 5397070c48a2fb1a17168e02e2e9486d549435cd (patch) | |
| tree | ec90c440c5632d32cf2102c863fea4644a208b61 | |
| parent | e44122c782cade92f43359a9034edf0d0d6cbf1d (diff) | |
| download | kolla-5397070c48a2fb1a17168e02e2e9486d549435cd.tar.gz kolla-5397070c48a2fb1a17168e02e2e9486d549435cd.zip | |
Fix incorrect tarballs naming
Last patch with publisher pipeline broke our post jobs. This is supposed
to fix it
Change-Id: I1040b4db7fe44ad631a3047292038da3445c20b5
| -rwxr-xr-x | tools/gate_run.sh | 7 |
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 . |
