summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-10 13:39:33 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-10 14:13:52 +0000
commit8fc222328d3c409972aecc8a66330683e00d1b35 (patch)
tree809221f18ce60c80fc65da7e05966e9482652724
parent8c7e4defbcb43550ece45996fa95c856f265adee (diff)
downloadjenkins-scripts-8fc222328d3c409972aecc8a66330683e00d1b35.tar.gz
round-robin-bisect.sh: Update email preferences
Change-Id: Ibcad05edb85d853ab70b723fb767ddb4389059ea
-rwxr-xr-xround-robin-bisect.sh40
1 files changed, 25 insertions, 15 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh
index 21f6b419..1c65070e 100755
--- a/round-robin-bisect.sh
+++ b/round-robin-bisect.sh
@@ -728,24 +728,34 @@ fi
# Set mail recipients last to preserve catch-error value from .yaml file.
# Email developers.
-CI_MAIL_RECIPIENTS="tcwg-validation@linaro.org"
-if [ x"$notify_author" != x"" ]; then
- # Don't email external developers while CI is going through old commits.
- #CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, $notify_author"
- CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, linaro-toolchain@lists.linaro.org"
-fi
-case "$current_project" in
- llvm) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, llvm@linaro.org" ;;
- binutils|gcc|glibc|newlib) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, tcwg-gcc@linaro.org" ;;
-esac
-case "${rr[ci_project]}/${rr[ci_config]}:$current_project" in
- tcwg_kernel/llvm-*:linux) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, arnd@linaro.org, clang-built-linux@googlegroups.com" ;;
- tcwg_kernel/llvm-*:llvm) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, clang-built-linux@googlegroups.com" ;;
+CI_MAIL_RECIPIENTS=("tcwg-validation@linaro.org")
+case "$notify_author@${rr[ci_project]}/${rr[ci_config]}:$current_project" in
+ ""@*/*:*) ;;
+ *@tcwg_gnu/*-check_bootstrap*:*) ;; # We are building up list of flaky tests
+ *@tcwg_cross/*-check_cross:*) ;; # We are building up list of flaky tests
+ *@tcwg_kernel/llvm-*:linux)
+ CI_MAIL_RECIPIENTS+=("$notify_author")
+ CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org")
+ CI_MAIL_RECIPIENTS+=("clang-built-linux@googlegroups.com")
+ CI_MAIL_RECIPIENTS+=("arnd@linaro.org")
+ ;;
+ tcwg_kernel/llvm-*:llvm)
+ CI_MAIL_RECIPIENTS+=("$notify_author")
+ CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org")
+ CI_MAIL_RECIPIENTS+=("clang-built-linux@googlegroups.com")
+ ;;
+ *@*/*:*)
+ CI_MAIL_RECIPIENTS+=("$notify_author")
+ CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org")
+ ;;
esac
if $notify_devs; then
- cat > $artifacts/jenkins/mail-recipients.txt <<EOF
-$CI_MAIL_RECIPIENTS
+ (
+ IFS=","
+ cat > $artifacts/jenkins/mail-recipients.txt <<EOF
+${CI_MAIL_RECIPIENTS[*]}
EOF
+ )
fi
trap "" EXIT