From 86b171c5fddc46efdae13448c60c18fe632ff1d9 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Tue, 12 Feb 2019 09:40:44 +0000 Subject: [rr-many 5/N] Update update_baseline Re-work commit title to handle multiple projects Change-Id: I5532a36e961734246d6c1b028d70a3f9906b8180 --- round-robin.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/round-robin.sh b/round-robin.sh index 7fcfb44f..379b4971 100644 --- a/round-robin.sh +++ b/round-robin.sh @@ -396,12 +396,20 @@ update_baseline () # in base-artifacts.git repo (though they will be uploaded to jenkins). rsync -a --del --exclude /.git ${rr[top_artifacts]}/ base-artifacts/ - local build_rev - build_rev=$(git -C ${rr[current_project]} rev-parse HEAD) - cd base-artifacts - git add . - git commit $amend -m "${rr[current_project]}-$build_rev: $(tail -n1 ${rr[top_artifacts]}/results) + local single_component + single_component=$(print_single_updated_component) + if [ x"$single_component" != x"" ]; then + local single_rev + single_rev=$(git -C $single_component rev-parse HEAD) + msg_title="$msg_title: $single_component-$single_rev" + else + msg_title="$msg_title: $(print_updated_components "-")" + fi + msg_title="$msg_title: $(tail -n1 ${rr[top_artifacts]}/results)" + + git -C base-artifacts add . + git -C base-artifacts commit $amend -m "$msg_title $(cat ${rr[top_artifacts]}/results)" ) -- cgit v1.2.3