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/build-docs.jpl b/jenkins/build-docs.jpl
index 7a2a969..59baf8b 100644
--- a/jenkins/build-docs.jpl
+++ b/jenkins/build-docs.jpl
@@ -14,7 +14,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"
}