0
votes

I have a jenkins ci job that runs a mvn junit test,

I would like to get the test result status and save it as a environment variable or pass it to other party.

Tests run: 515, Failures: 12, Errors: 6, Skipped: 8

how do i achieve that? right now i can only read the result manually from the console.

1
you most probably need to create a script which either reads the build log or the surefire report. What's the overall process? - A_Di-Matteo
in jenkins job i will run the mvn install which will trigger the junit test. but at the end of the job i would like to parse the test status information sentence and pass it over to a email report template - 12f0af0

1 Answers

0
votes

You can use Maven Surefire plugin report. The results will be available as shown here.