The original commit introduces a regression in our ability to send
emails to the correct mailing lists.
This reverts commit
ea26afb7d635a615547490e05a7aef2d9bcda265.
Issue: RELENG-70
Change-Id: If493d40462d12edba2913971ba145a3d2b4a75e9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
$CONSOLE_LOG | gzip > "$ERROR_LOG"
if [ -n "${PROJECT}" ]; then
$CONSOLE_LOG | gzip > "$ERROR_LOG"
if [ -n "${PROJECT}" ]; then
- RELEASE_EMAIL="\${RELEASE_EMAIL}, \${PROJECT}-dev@lists.opendaylight.org"
+ RELEASE_EMAIL="${RELEASE_EMAIL}, ${PROJECT}-dev@lists.opendaylight.org"
fi
file_size=$(du -k "$ERROR_LOG" | cut -f1)
fi
file_size=$(du -k "$ERROR_LOG" | cut -f1)
- PARAMS=("-r \"Jenkins <jenkins-dontreply@opendaylight.org>\"")
- PARAMS+=("-s \"$SUBJECT\"")
# Only send emails in production (releng), not testing (sandbox)
if [ "${SILO}" == "releng" ]; then
if [[ "$file_size" -gt 100 ]]; then
# shellcheck disable=SC2034
ATTACHMENT=ATTACHMENT_EXCLUDE
# Only send emails in production (releng), not testing (sandbox)
if [ "${SILO}" == "releng" ]; then
if [[ "$file_size" -gt 100 ]]; then
# shellcheck disable=SC2034
ATTACHMENT=ATTACHMENT_EXCLUDE
+ eval echo \""${BODY}"\" | mail \
+ -r "Jenkins <jenkins-dontreply@opendaylight.org>" \
+ -s "${SUBJECT}" "${RELEASE_EMAIL}"
- PARAMS+=("-a \"$ERROR_LOG\"")
+ eval echo \""${BODY}"\" | mail -a "$ERROR_LOG" \
+ -r "Jenkins <jenkins-dontreply@opendaylight.org>" \
+ -s "${SUBJECT}" "${RELEASE_EMAIL}"
-
- eval echo \""${BODY}"\" | eval mail "${PARAMS[*]}" "${RELEASE_EMAIL}"
-
elif [ "${SILO}" == "sandbox" ]; then
echo "Running in sandbox, not actually sending notification emails"
echo "Subject: ${SUBJECT}"
elif [ "${SILO}" == "sandbox" ]; then
echo "Running in sandbox, not actually sending notification emails"
echo "Subject: ${SUBJECT}"