-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Per #366, update nightly build email list.
- Loading branch information
1 parent
e48325e
commit 5d9b192
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |