TF-M CI: Support Profile M

TF-M has added Profile M as a new feature.
CI needs to support Profile M.

Change-Id: I6dc7f42cca5797a7999939cf3a02f39709ca8b3f
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index 3504d1b..fbb7726 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -80,8 +80,8 @@
       }
   else if (build_params["BL2"]        == "True"          && \
       build_params["NS"]              == "True"          && \
-      build_params["PSA_API"]         == "False"         && \
-      build_params["ISOLATION_LEVEL"] == "1"             && \
+      build_params["PSA_API"]         == "True"          && \
+      build_params["ISOLATION_LEVEL"] == "2"             && \
       build_params["PROFILE"]         == "profile_medium"&& \
       build_params["TEST_REGRESSION"] == "False"         && \
       build_params["TEST_PSA_API"]    == "OFF") {
@@ -125,8 +125,8 @@
       }
   else if (build_params["BL2"]        == "True"          && \
       build_params["NS"]              == "True"          && \
-      build_params["PSA_API"]         == "False"         && \
-      build_params["ISOLATION_LEVEL"] == "1"             && \
+      build_params["PSA_API"]         == "True"         && \
+      build_params["ISOLATION_LEVEL"] == "2"             && \
       build_params["PROFILE"]         == "profile_medium"&& \
       build_params["TEST_REGRESSION"] == "True"          && \
       build_params["TEST_PSA_API"]    == "OFF") {
@@ -213,7 +213,8 @@
     if (build_res.result in failure_states) {
       error("Build failed at ${build_url}")
     }
-    else if (params_collection["NS"] == "False") {
+    else if (params_collection["NS"] == "False" ||
+             params_collection["PARTITION_PS"] == "OFF") {
       print("LAVA is not needed for ${build_url}")
     }
     else {