diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-02-12 09:40:44 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-02-18 15:31:58 +0000 |
commit | 86b171c5fddc46efdae13448c60c18fe632ff1d9 (patch) | |
tree | aa2baa4139fcf4ee62c13d28044483e64389a10a | |
parent | eb98ad65eaac2ee6b443ea5b017d4d3ae391acdf (diff) |
[rr-many 5/N] Update update_baseline
Re-work commit title to handle multiple projects
Change-Id: I5532a36e961734246d6c1b028d70a3f9906b8180
-rw-r--r-- | round-robin.sh | 18 |
1 files 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)" ) |