Add mbedtls as dependency in CI scripts

The mbedtls will active instead of mbed crypto.

Co-authored-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: Karl Zhang <karl.zhang@arm.com>
Change-Id: I8cdee611c14de6ae0a2a9a99e8efebc0777d91a8
diff --git a/jenkins/build-docs.jpl b/jenkins/build-docs.jpl
index a0f9072..29dbc5c 100644
--- a/jenkins/build-docs.jpl
+++ b/jenkins/build-docs.jpl
@@ -42,6 +42,20 @@
         ]
       )
     }
+    dir("mbedtls") {
+      checkout(
+        changelog: false,
+        poll: false,
+        scm: [
+          $class: 'GitSCM',
+          branches: [[name: 'FETCH_HEAD']],
+          userRemoteConfigs: [[
+            refspec: 'refs/tags/$MBEDTLS_VERSION',
+            url: params.MBEDTLS_URL
+          ]]
+        ]
+      )
+    }
     dir("mcuboot") {
       checkout(
         changelog: false,