From cbf219a5d3261cadf886b29787783f52ace831e2 Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Thu, 4 Apr 2024 12:24:49 -0600 Subject: [PATCH] Per #366, update nightly build email list. --- internal/scripts/sonarqube/run_nightly.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/scripts/sonarqube/run_nightly.sh b/internal/scripts/sonarqube/run_nightly.sh index ad1935ea..fe257b6c 100755 --- a/internal/scripts/sonarqube/run_nightly.sh +++ b/internal/scripts/sonarqube/run_nightly.sh @@ -12,7 +12,7 @@ # METcalcpy/sonarqube/run_nightly.sh name # # Usage: run_nightly.sh name -# where "name" speci1fies a branch, tag, or hash +# where "name" specifies a branch, tag, or hash # # For example, scan the develop branch: # run_nightly.sh develop @@ -20,8 +20,7 @@ #======================================================================= # Constants -EMAIL_LIST="johnhg@ucar.edu hsoh@ucar.edu mccabe@ucar.edu minnawin@ucar.edu" -TEST_EMAIL_LIST="hsoh@ucar.edu" +EMAIL_LIST="johnhg@ucar.edu hsoh@ucar.edu jpresto@ucar.edu minnawin@ucar.edu" KEEP_DAYS=5 GIT_REPO_NAME=METcalcpy @@ -68,12 +67,9 @@ LOGFILE=${RUN_DIR}/run_sonarqube_${TODAY}.log # Run scan and check for bad return status ${SCRIPT_DIR}/run_sonarqube.sh ${1} >& ${LOGFILE} if [[ $? -ne 0 ]]; then - [ ! -z $2 ] && EMAIL_LIST=$TEST_EMAIL_LIST echo "$0: The nightly SonarQube scanning for $GIT_REPO_NAME FAILED in `basename ${RUN_DIR}`." >> ${LOGFILE} cat ${LOGFILE} | mail -s "$GIT_REPO_NAME SonarQube scanning failed for ${1} in `basename ${RUN_DIR}` (autogen msg)" ${EMAIL_LIST} exit 1 fi -# Convert SonarQube report from pdf to html - exit 0