3 now=$(date +'%Y%-m%d%H%M')
9 RECIPIENTS1="dl-sdcqa@att.com,ml636r@att.com,bl5783@att.com,ak314p@att.com,el489u@att.com,hk096q@att.com,bs5719@att.com"
10 #RECIPIENTS2="dl-asdcqa@att.com"
11 RECIPIENTS2="md9897@att.com,ms656r@att.com,al714h@att.com,ak991p@att.com,ya107f@att.com,bv095y@att.com,st198j@att.com,th0695@att.com,vk195d@att.com,gg980r@att.com,il0695@att.com,el489u@att.com"
13 source ExtentReport/versions.info
14 if [ -z "$REPORT_NAME" ]
16 source ExtentReport/versions.info
17 now=$(date +'%Y-%m-%d_%H_%M')
19 VERSION="${osVersion}"
24 if [[ $env == *"DEV20"* ]]
27 RECIPIENTS=$RECIPIENTS1
30 RECIPIENTS=$RECIPIENTS2
33 #REPORT_ZIP_FILE=ExtentReport_${now}.zip
34 REPORT_FOLDER='ExtentReport'
35 REPORT_HTML_FILE=${REPORT_FOLDER}/*Report.html
36 BODY_MESSAGE='Hello, \n\n Please find automation results on following link: \n\n http://asdc-srv-210-45.tlv.intl.att.com/'${ENV}'/'${VERSION}'/UI/'${REPORT_NAME}'/SDC_UI_Extent_Report.html \n\nThanks, \nASDC QA Team\n\n '
38 #OLD_FILE=$(find ./ -type f -name ${REPORT_ZIP_FILE} -print)
39 #if [ ! -z ${OLD_FILE} ]
41 # rm -f ${REPORT_ZIP_FILE}
42 # echo "Removing old zip file............"
45 #echo "Creating new zip file"
46 #zip -r ${REPORT_ZIP_FILE} ./${REPORT_FOLDER}
50 echo -e ${BODY_MESSAGE} | mail -s 'E2E Automation '$ENV' results - SDC '$VERSION -r 'ASDC@Automation.team' $RECIPIENTS