I made a Selenium script who will be executed by jenkins, when all the test results are ok jenkins says that everything is good (with the blue point) but when the test resut are failed (and the console output says that it failed) the point stills blue and it's supposed to be red and upload a mantis report but this doesn't happen. The first screenshot it's the test results, the second one its the blue point, and the thirt one it's the console output (in the comment section this one)
Your script needs to return a non-zero exit code when failures happen. For example, if your script is a Windows command line script, you can use this code:
echo Tests failed! Returning a non-zero exit status...
exit 1
This will fail the build in Jenkins and change the circle color to red.
Alternatively you can use the Log Parser Plugin to search the build log for "Tests failed" and mark build as failed.