diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 37d51f7..e37114b 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -129,9 +129,17 @@ logs_dir = $(realpath "${BASE_DIR}")/job-results
 EOF
 export VIRTUAL_ENV="./"
 
+# use correct variable
+case "$(avocado --version)" in
+  *100*) PARALLEL="--max-parallel-tasks=1"
+    ;;
+  *) PARALLEL="--nrunner-max-parallel-tasks=1"
+    ;;
+esac
+
 # the real stuff starts here, trace commands from now on
 set -x
 
 avocado ${VERBOSE} run "${TESTSUITE_DIR}/citest.py" \
-    -t "${TAGS}" --max-parallel-tasks=1 --disable-sysinfo \
+    -t "${TAGS}" ${PARALLEL} --disable-sysinfo \
     -p quiet="${QUIET}" -p time_to_wait="${TIMEOUT}"
