Hello Friends,
I am new to Jenkins and configuring a job to run my automated selenium tests and have a need to send the email based on my build result and attachments.
Current Scenario - After my test run , i am attaching an .xml file and screenshots to the email notification.
Content Type : Default Content Type
Default Subject : Smoke Test build results
Default Content : Attached is the html report for smoke tests and screen shots of failed tests.
Attachments:xxxx/target/surefire-reports/emailable-report.html,xxxxxt/target/surefire-reports/screenshots/*.png
My requirements :
1. If there is attachment and no screen shots , i need default content to be and only attachment location.
Default Content : Attached is the html report for smoke tests
Attachments:xxxx/target/surefire-reports/emailable-report.html,xxxxxt/target/surefire-reports/screenshots/*.png111
2. If there is no attachement and screenshots , default content should be
Default Content : Configuration issues , attachment missing.
Any help is appreciated.
Thanks
Jyo