jenkins quoting does not like array len sytnax, use find | wc -l
Change-Id: I541c7538422bc73ca3c41f34a00edd682adaf2f8
diff --git a/jjb/pipeline/voltha/master/bbsim-tests.groovy b/jjb/pipeline/voltha/master/bbsim-tests.groovy
index c465ab3..a188469 100644
--- a/jjb/pipeline/voltha/master/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/master/bbsim-tests.groovy
@@ -427,8 +427,9 @@
/bin/ls -l "${logsDir}"
echo
- readarray -t logs < <(find . -name '*-combined.log' -print)
- if [[ \${\#logs[@]} -gt 0 ]]; then
+ declare -i count=0
+ count=$(find . -name '*-combined.log' -print | wc -l)
+ if [[ $count -gt 0 ]]; then
echo '** Bundle combined log'
gzip "${logs[@]}"
rm -f "${logs[@]}"