The Context I have implemented a Test Suite using Java, JUnit and Selenuim WebDriver to automate the testing of a Web Application. The Test Suite is deployed as a Maven Job within Jenkins which rebuilds on changes to the TestSuite or SUT. Jenkins also runs the TestSuite for a number of top-level maven jobs for test cases to continuously test the target system using different browsers, both on a schedule and on demand. The Surefire plugin is used to make the test results visible and Emma plugin for Test Coverage.
When a JUnit @Test fails (i.e. detects a bug in the SUT, not a test suite error) the suite takes a screenshot of the Browser using the WebDriver feature which it persists into a folder under the Jenkins workspace. The screen shot filename is a UUID which is recorded in the test log. This all works very well overall.
The Question The screen shots are visible by drilling into the workspace via Jenkins UI. However this is a clumsy mechanism. I want to find a way within the Jenkins UI to hyperlink either the Surefire results and/or the console output to the specific screen shot. e.g. by clicking the UUID in the log.