Skip to content

Commit

Permalink
Per #366, update nightly build email list.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Apr 5, 2024
1 parent e48325e commit 5d9b192
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/scripts/sonarqube/run_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
# 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
#
#=======================================================================

# Constants
EMAIL_LIST="[email protected] [email protected] [email protected] [email protected]"
TEST_EMAIL_LIST="[email protected]"
EMAIL_LIST="[email protected] [email protected] [email protected] [email protected]"
KEEP_DAYS=5
GIT_REPO_NAME=METcalcpy

Expand Down Expand Up @@ -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

0 comments on commit 5d9b192

Please sign in to comment.