2
votes

I have continuous integration setup using jenkins and also integrated selenium scripts for nightly build. I also have editable email notification for sending emails in case of any build failure.

The default content for editable email notification is

$DEFAULT_CONTENT

${JELLY_SCRIPT,template="text"}

${FAILED_TESTS}

This content give me clear picture if there is any fail in the selenium script with full stacktrace.

The problem is that, if the jenkins build got failed due to compile error or any other failure reasons, the email notification is not providing any reason about the failure. It simply says No tests ran.

How to make jenkins to send mail notification with the failure reason, if the build got failed due to compile time error ?

3

3 Answers

0
votes

You can attach build logs and any reports that your selenium has producing with the editable email notification.

Below is a screenshot of what you can do: enter image description here

Attached Logs can give you Info on build failure and other details And reports can be customized as you need.
More links:

0
votes

You can create two jobs , one is for triggering build for every check and one for running automation suite.

It may resolve your problem