The Pipeline's script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.
[stage name: 'Publish test result', concurrency: 1
msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF
mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]
But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.