Sync CI-Scripts repo

In addition to tftf and tf-a, we also sync the ci scripts as they're
also open source.

Change-Id: I2557397553b4ca4d50b063017741d9e5e19d02fe
Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
diff --git a/arm-env.sh b/arm-env.sh
index 635c52e..d3d67d2 100644
--- a/arm-env.sh
+++ b/arm-env.sh
@@ -18,6 +18,7 @@
 tf_ci_repo_url="${CI_SRC_REPO_URL:-http://$arm_gerrit_url/pdswinf/ci/pdcs-platforms/platform-ci}"
 tf_arm_gerrit_repo="ssh://$arm_gerrit_url:29418/pdcs-platforms/ap/tf-topics.git"
 tftf_arm_gerrit_repo="ssh://$arm_gerrit_url:29418/trusted-firmware/tf-a-tests.git"
+ci_arm_gerrit_repo="ssh://$arm_gerrit_url:29418/pdswinf/ci/pdcs-platforms/platform-ci.git"
 scp_src_repo_default="${scp_src_repo_default:-http://$arm_gerrit_url/scp/firmware}"
 cc_src_repo_url="${cc_src_repo_url:-https://$arm_gerrit_url/tests/lava/test-definitions.git}"
 cc_src_repo_tag="${cc_src_repo_tag:-kernel-team-workflow_2019-09-20}"
diff --git a/job/tf-sync-repos/sync.sh b/job/tf-sync-repos/sync.sh
index 0ba9316..4fe50a3 100755
--- a/job/tf-sync-repos/sync.sh
+++ b/job/tf-sync-repos/sync.sh
@@ -44,6 +44,10 @@
 			repo_url=$tftf_src_repo_url
 			repo_name="TF-A-Tests"
 			;;
+		tf-a-ci-scripts)
+			repo_url=$ci_src_repo_url
+			repo_name="TF-A-CI-Scripts"
+			;;
 		*)
 			echo "ERROR: Unknown repo to be cloned. sync.sh failed!"
 			exit 1
@@ -82,9 +86,11 @@
 
 clone_repo trusted-firmware-a
 clone_repo tf-a-tests
+clone_repo tf-a-ci-scripts
 
 pull_changes trusted-firmware-a
 pull_changes tf-a-tests
+pull_changes tf-a-ci-scripts
 
 # stop exiting automatically
 set +e
@@ -101,7 +107,11 @@
 sync_repo "internal TF-A-Tests Gerrit" $tftf_arm_gerrit_repo
 tftf_gerrit=$?
 
-if [ $github != 0 -o $tfa_gerrit != 0 -o $tftf_gerrit != 0 ]
+cd ../tf-a-ci-scripts
+sync_repo "internal TF-A-CI-Scripts Gerrit" $ci_arm_gerrit_repo
+ci_gerrit=$?
+
+if [ $github != 0 -o $tfa_gerrit != 0 -o $tftf_gerrit != 0 -o $ci_gerrit != 0 ]
 then
 	exit 1
 fi
diff --git a/utils.sh b/utils.sh
index 5f594a5..443c12d 100644
--- a/utils.sh
+++ b/utils.sh
@@ -307,6 +307,8 @@
 tf_src_repo_url="${tf_src_repo_url:-https://$tforg_gerrit_url/TF-A/trusted-firmware-a}"
 tftf_src_repo_url="${tftf_src_repo_url:-$TFTF_SRC_REPO_URL}"
 tftf_src_repo_url="${tftf_src_repo_url:-https://$tforg_gerrit_url/TF-A/tf-a-tests}"
+ci_src_repo_url="${ci_src_repo_url:-$CI_SRC_REPO_URL}"
+ci_src_repo_url="${ci_src_repo_url:-https://$tforg_gerrit_url/ci/tf-a-ci-scripts}"
 scp_src_repo_url="${scp_src_repo_url:-$SCP_SRC_REPO_URL}"
 scp_src_repo_url="${scp_src_repo_url:-$scp_src_repo_default}"