Trouble at getting access to your Surefire Output Files in your CI?

We have started to use Bamboo from Atlassian in the office, which is a great continuous integration (CI) server. However, I am not the admin and getting access to the SureFire output files in the target/surefire-reports/ directory is a pain, as I have no access to the server that Bamboo runs upon (rightly so too).

There is a nice workaround that you can use that outputs the contents of failures into the console log, which is available for viewing in Bamboo (and other CIs such as Continuum and Hudson). Simply amend your project’s ‘pom.xml’ so that the SureFire configuration looks like this:

<plugins> 
	... 
	<plugin> 
		<groupId>org.apache.maven.plugins</groupId> 
		<artifactId>maven-surefire-plugin</artifactId> 
		<configuration> 
			... 
			<!-- Gets rid of the Text Files in target/surefire-reports in reports failures in console --> 
			<useFile>false</useFile> 
			... 
		</configuration> 
	</plugin> 
	... 
</plugins>

 

Leave a Reply

Your email address will not be published. Required fields are marked *