Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread red 888
I have my test runner configured and its generating a trx file, now I want to use the MSTest plugin to read it: https://wiki.jenkins.io/display/JENKINS/MSTest+Plugin But I don't know how to refer to it in a pipeline (Jenkinsfile). Does this plugin support jenkinsfile? Is there a way to use plug

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread Slide
>From looking at the source, it doesn't look like you can use mstest in pipeline right now. It doesn't implement SimpleBuildStep, so it relies on AbstractBuild, which is not what pipeline jobs use as a base class for a build. On Tue, Aug 15, 2017 at 8:12 AM red 888 wrote: > I have my test runner

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread red 888
Is there a way I could refer to the plugin directly via a bat command? Is there any way to call it directly even if it doesn't implement the pipeline methods? aren't plugin just groovy scripts? On Tuesday, August 15, 2017 at 11:24:18 AM UTC-4, slide wrote: > > From looking at the source, it does

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-15 Thread Slide
No, you can't really use the plugin via a bat file, you'd need to just run mstest directly. You can't use the plugin in pipeline if it doesn't support it. The issue is that the pipeline calls the "perform" method that matches a specific signature, there is no "perform" method in the mstest plugin t

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-16 Thread jerome
Sadly no, many puglin are still incompatible, you can see the compatibility list here: https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md Since the .trx is just an xml file, you could try to do an .xslt file that do the convertion to junit .xml. Maybe someone already did