use Arm's jenkins environment check function
Use the function that checks Arm's jenkins environment instead of 'echo
| grep' pipe command
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I99060e330d3cc64569d4d3638684c6e0ad2bee73
diff --git a/fvp_utils.sh b/fvp_utils.sh
index 1101d94..a366909 100644
--- a/fvp_utils.sh
+++ b/fvp_utils.sh
@@ -264,8 +264,10 @@
# 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
+ if ! is_arm_jenkins_env; then
+ if [ "${model}" = "foundationv8" ]; then
+ return
+ fi
fi
# optional parameters, defaults to globals