summaryrefslogtreecommitdiff
path: root/tb/tb_internals.sh
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2017-02-21 16:47:15 +0100
committerAndras Timar <andras.timar@collabora.com>2019-05-31 12:16:30 +0200
commit4ef024b80041f38fde1a1fda18c5f678b3299089 (patch)
tree0edf67af15b5bdeed5012765f6096a5c415524fa /tb/tb_internals.sh
parente58198762b76ff1f0c88e2be261ea846ca391efe (diff)
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 <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'tb/tb_internals.sh')
-rw-r--r--tb/tb_internals.sh10
1 files 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 "<a href='http://cgit.freedesktop.org/libreoffice/core/log/?id=$sha'>core</a>"
+ local branch="$2"
+ if [[ $branch == *"online"* ]]; then
+ echo "<a href='http://cgit.freedesktop.org/libreoffice/online/log/?id=$sha'>online</a>"
+ else
+ echo "<a href='http://cgit.freedesktop.org/libreoffice/core/log/?id=$sha'>core</a>"
+ 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"