ci: sync hafnium to internal gerrit
Added necessary support in the scripts to sync hafnium main tree to
internal gerrit.
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: I7ab7483263d232ace51a25e4969ff7c6c34b274f
diff --git a/arm-env.sh b/arm-env.sh
index 93a9016..421f0c8 100644
--- a/arm-env.sh
+++ b/arm-env.sh
@@ -24,6 +24,7 @@
cc_src_repo_tag="${cc_src_repo_tag:-kernel-team-workflow_2019-09-20}"
scp_tools_src_repo_url="${scp_tools_src_repo_url:-https://$arm_gerrit_url/scp/tools-non-public}"
tf_for_scp_tools_src_repo_url="https://$arm_gerrit_url/scp/test-framework"
+spm_arm_gerrit_repo="ssh://$arm_gerrit_url:29418/trusted-firmware/spm.git"
# Arm Coverity server.
export coverity_host="${coverity_host:-coverity.cambridge.arm.com}"
diff --git a/job/tf-sync-repos/sync.sh b/job/tf-sync-repos/sync.sh
index c96eb43..43d971e 100755
--- a/job/tf-sync-repos/sync.sh
+++ b/job/tf-sync-repos/sync.sh
@@ -48,12 +48,16 @@
repo_url=$ci_src_repo_url
repo_name="TF-A-CI-Scripts"
;;
+ hafnium)
+ repo_url=$spm_src_repo_url
+ repo_name="hafnium"
+ ;;
*)
echo "ERROR: Unknown repo to be cloned. sync.sh failed!"
exit 1
;;
esac
-
+
# Remove old tree if it exists
if [ -d $1 ]; then
rm -rf "$1"
@@ -85,10 +89,12 @@
clone_repo trusted-firmware-a
clone_repo tf-a-tests
clone_repo tf-a-ci-scripts
+clone_repo hafnium
pull_changes trusted-firmware-a
pull_changes tf-a-tests
pull_changes tf-a-ci-scripts
+pull_changes hafnium
# stop exiting automatically
set +e
@@ -105,11 +111,17 @@
sync_repo "internal TF-A-Tests Gerrit" $tftf_arm_gerrit_repo
tftf_gerrit=$?
+# Update TF-A-CI-Scripts
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 ]
+# Update Hafnium
+cd ../hafnium
+sync_repo "internal Hafnium Gerrit" $spm_arm_gerrit_repo
+spm_gerrit=$?
+
+if [ $github != 0 -o $tfa_gerrit != 0 -o $tftf_gerrit != 0 -o $ci_gerrit != 0 -o $spm_gerrit != 0 ]
then
exit 1
fi