Ok there was an option to publish in the drop down of the pipeline configuration
On Monday, February 8, 2016 at 11:19:24 AM UTC-6, ok999 wrote: > > 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 > <https://wiki.jenkins-ci.org/display/JENKINS/MSTest+Plugin>". 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) > > I came accross this blog > <https://testingisland.wordpress.com/2014/02/17/integrating-saucelabs-reports-with-mstest-and-jenkins/>. > > And so downloaded the "*msxsl.exe" and used the same file (* > mstest-to-junit_withOutput.xsl > <https://dl.dropboxusercontent.com/u/17544582/TestingIsland/mstest-to-junit_withOutput.xsl> > )* to test initially. * > > *This file "*mstest-to-junit_withOutput.xsl > <https://dl.dropboxusercontent.com/u/17544582/TestingIsland/mstest-to-junit_withOutput.xsl>" > > doesnt come with the plugin as quoted below from the blog > > *"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! > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce7ef7e9-c26c-400d-8b01-36d4f8532092%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
