fvp_utils.sh: disable foundationv8 LAVA test job generation

Foundation plaforms (model=foundationv8) are failing because LAVA [1]
should read two ports, 5000 and 5002, but LAVA does not support this
feature, so for the moment avoid creating any LAVA test job definition
for this model in tf.validation.linaro.org until a solution is found,
but keep it enabled for Arm internal infrastructure.

[1] https://tf.validation.linaro.org/scheduler/job/33871

Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I1d2e49365f2bbd2e464de699abb59365bc646672
diff --git a/fvp_utils.sh b/fvp_utils.sh
index 010af08..1101d94 100644
--- a/fvp_utils.sh
+++ b/fvp_utils.sh
@@ -259,6 +259,15 @@
     # must parameters for yaml generation
     local model="${model:?}"
 
+    # FIXME: Foundation plaforms (model=foundationv8) are failing because LAVA [1]
+    # should read two ports, 5000 and 5002, but LAVA does not support this
+    # feature, so for the moment avoid creating any LAVA test job definition
+    # for this model until a solution is found.
+    # [1] https://tf.validation.linaro.org/scheduler/job/33871
+    if echo "$JENKINS_URL" | grep -q -v "arm.com" && [ "${model}" = "foundationv8" ]; then
+        return
+    fi
+
     # optional parameters, defaults to globals
     local model_name="${model_name:-$default_model_name}"
     local model_dtb="${model_dtb:-$default_model_dtb}"