Revert "retry cell get on an error"
This reverts commit c63d5e8ee6e69c7f76c561c04f647e5bfd306e5c.
Change-Id: I2e8b866d378979b5a488ebc1b4521d1d99dc20d5
diff --git a/jjb/onos/onos-run-stc.sh b/jjb/onos/onos-run-stc.sh
index 23e8414..130abcd 100644
--- a/jjb/onos/onos-run-stc.sh
+++ b/jjb/onos/onos-run-stc.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# exit on errors
+set -eu -o pipefail
+
# initialize build environment
ONOS_ROOT=`pwd`
. tools/build/envDefaults
@@ -16,24 +19,8 @@
trap cleanup EXIT
-let err=0
# grab a cell to run on
-for i in 1 2 3 4 5; do
- cell borrow 30 3+1 jenkins-${ONOS_VERSION}
- if [ $? -eq 0 ]; then
- let err=0
- break
- fi
- let err=$err+1
- cell return
-done
-
-if [ $err -ne 0 ]; then
- exit 1
-fi
-
-# exit on errors
-set -eu -o pipefail
+cell borrow 30 3+1 jenkins-${ONOS_VERSION}
# build onos bits
onos-buck build onos