From 4ef024b80041f38fde1a1fda18c5f678b3299089 Mon Sep 17 00:00:00 2001 From: László Németh Date: Tue, 21 Feb 2017 16:47:15 +0100 Subject: fix tb commit links to the online repository If the tinderbox branch name contains "online", use libreoffice/online in commit links instead of libreoffice/core, also set link text "online" instead of "core". Change-Id: Idcc88491c3fad11435a061bec36fea89184d39fc Reviewed-on: https://gerrit.libreoffice.org/73248 Reviewed-by: Andras Timar Tested-by: Andras Timar --- tb/tb_internals.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tb/tb_internals.sh b/tb/tb_internals.sh index 784a0a3..7f7cc04 100644 --- a/tb/tb_internals.sh +++ b/tb/tb_internals.sh @@ -278,8 +278,12 @@ find_dev_install_location() generate_cgit_link() { local sha="$1" - - echo "core" + local branch="$2" + if [[ $branch == *"online"* ]]; then + echo "online" + else + echo "core" + fi } get_commits_since_last_good() @@ -808,7 +812,7 @@ tinderbox: END ( echo "$message_content" cat "${TB_METADATA_DIR?}/${P?}_current-git-timestamp.log" - for cm in $(cat "${TB_METADATA_DIR?}/${P?}_current-git-head.log") ; do echo "TinderboxPrint: $(generate_cgit_link "${cm}")" ; done + for cm in $(cat "${TB_METADATA_DIR?}/${P?}_current-git-head.log") ; do echo "TinderboxPrint: $(generate_cgit_link "${cm}" "$TB_TINDERBOX_BRANCH?}")" ; done cat tb_${P?}_autogen.log tb_${P?}_clean.log tb_${P?}_build.log tb_${P?}_tests.log 2>/dev/null ) | gzip -c > "${gzlog}" xtinder="X-Tinder: gzookie" -- cgit v1.2.3