jjb: xci: bifrost-cleanup-job: Fix undefined variable 19/33019/1
authorMarkos Chandras <mchandras@suse.de>
Wed, 5 Apr 2017 16:55:31 +0000 (17:55 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 5 Apr 2017 16:56:10 +0000 (17:56 +0100)
Variable 'i' does not exist. It should be 'try_to_rm' instead.

Change-Id: Ic2aa5a1115715851379e2c7ba5c11699cb8e7407
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/bifrost-cleanup-job.yml

index d4b2157..d5a444d 100644 (file)
@@ -69,7 +69,7 @@
             while [[ $try_to_rm -lt 6 ]]; do
                 gsutil -m rm -r $BIFROST_GS_URL && _exitcode=$? && break
                 _exitcode=$?
-                echo "gsutil rm failed! Trying again... (attempt #$i)"
+                echo "gsutil rm failed! Trying again... (attempt #$try_to_rm)"
                 let try_to_rm += 1
                 # Give it some time...
                 sleep 10