Skip to content

Commit

Permalink
Per #1510, update the subject of NB mail messages from cron to includ…
Browse files Browse the repository at this point in the history
…e the date directory.
  • Loading branch information
MET Tools Test Account committed Oct 6, 2020
1 parent b7b9061 commit 9660f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/fortify/run_nightly.sh
Expand Up @@ -64,7 +64,7 @@ LOGFILE=${RUN_DIR}/run_fortify_sca_`date +%Y%m%d`.log
# Run scan and check for bad return status
${SCRIPT_DIR}/run_fortify_sca.sh ${1} > ${LOGFILE}
if [[ $? -ne 0 ]]; then
echo "$0: The nightly Fortify scan FAILED on ${TODAY}." >> ${LOGFILE}
cat ${LOGFILE} | mail -s "MET Fortify Scan Failed for ${1} (autogen msg)" ${EMAIL_LIST}
echo "$0: The nightly Fortify scan FAILED in `basename ${RUN_DIR}`." >> ${LOGFILE}
cat ${LOGFILE} | mail -s "MET Fortify Scan Failed for ${1} in `basename ${RUN_DIR}` (autogen msg)" ${EMAIL_LIST}
exit 1
fi
4 changes: 2 additions & 2 deletions scripts/regression/test_nightly.sh
Expand Up @@ -80,7 +80,7 @@ ${SCRIPT_DIR}/test_regression.sh ${1}-ref ${1} >> ${LOGFILE} 2>&1
if [[ $? -ne 0 ]]; then
echo "$0: ERROR -> the regression test failed." >> ${LOGFILE}
echo -e "Nightly Build Log: `hostname`:${LOGFILE}\n\n`tail -10 ${LOGFILE}`" | \
mail -s "MET Nightly Build Failed for ${1} (autogen msg)" ${EMAIL_LIST}
mail -s "MET Nightly Build Failed for ${1} in `basename ${RUN_DIR}` (autogen msg)" ${EMAIL_LIST}
exit 1
fi

Expand All @@ -93,7 +93,7 @@ echo "$0: Found $N_WRN WARNINGS and $N_ERR ERRORS in regtest" >> ${LOGFILE}
if [[ $N_ERR -gt 0 ]]; then
echo "$0: ERROR -> grep found ERRORS in regtest" >> ${LOGFILE}
echo "Nightly Build Log: `hostname`:${LOGFILE}" | \
mail -s "MET Nightly Build Failed for ${1} (autogen msg)" ${EMAIL_LIST}
mail -s "MET Nightly Build Failed for ${1} in `basename ${RUN_DIR}` (autogen msg)" ${EMAIL_LIST}
exit 1
fi

Expand Down

0 comments on commit 9660f54

Please sign in to comment.