jenkins/: Use tfgit.checkout_ci_scripts()

Consistently use single function for clone tf-m-ci-scripts repo with
parameters defined by job (e.g. specifying a change reference to fetch).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I76eb4c6c31633b98489f82d29015c7d9486418ff
diff --git a/jenkins/static.jpl b/jenkins/static.jpl
index 10b477b..443ea27 100644
--- a/jenkins/static.jpl
+++ b/jenkins/static.jpl
@@ -6,6 +6,8 @@
 //
 //-------------------------------------------------------------------------------
 
+@Library('trustedfirmware') _
+
 
 def trigger(job_name) {
   return {
@@ -39,7 +41,7 @@
     stage("Init") {
       cleanWs()
       dir("tf-m-ci-scripts") {
-        checkout([$class: 'GitSCM', branches: [[name: '$CI_SCRIPTS_BRANCH']], userRemoteConfigs: [[credentialsId: 'GIT_SSH_KEY', url: '$CI_SCRIPTS_REPO']]])
+        tfgit.checkout_ci_scripts()
         // Clone TF-M repositories so share folder can be reused by downstream jobs
         sh "./clone.sh"
       }