hey guys,
The unit test & integration test stages in the pipeline for a .net app, returns the .trx file as a result. I know that there is a plugin called "
Publish MSTEST test result report". But i dont know how to use this in a pipeline. For a regular individual job, i can just create a job and point to the .trx file, that way the result is published on the jenkins console.
Question: Have anyone done this in a pipeline? (Publishing a .trx file on jenkins as a stage in the pipeline)
"You can find this file in your Jenkins home folder (if you have MSTest plugin installed):
…\Jenkins\plugins\mstest\WEB-INF\classes\hudson\plugins\mstest\mstest-to-junit.xsl"
I inserted a windows batch in the pipeline, like so
stage name: 'Publish test result', concurrency: 1
bat 'C:\\bin\\msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF\\mstest-to-junit_withOutput.xsl" -o %cd%\\Build-%BUILD_NUMBER%\\JUnitLikeResultsOutputFile1.xml'
The stage executes and returns the output .xml file, but i don't see it on the jenkins console. It only exist in the filesystem.
Thanks in advance!