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
that has that signature, only one that takes incorrect parameters for
legacy projects (freestyle and friends). Someone would need to update the
plugin to support pipeline.

On Tue, Aug 15, 2017 at 8:56 AM red 888 <fakemailred...@gmail.com> wrote:

> 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 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 <fakemai...@gmail.com> wrote:
>>
> 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 plugins in a
>>> jenkinsfile even if they don't support it explicitly?
>>>
>>> --
>>> 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 jenkinsci-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/beb7b643-6da5-4e72-9771-da860fbb8f34%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/beb7b643-6da5-4e72-9771-da860fbb8f34%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/0e360ad0-9334-4cb6-a317-672103b5cc69%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/0e360ad0-9334-4cb6-a317-672103b5cc69%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVebXEo9_Mm11zsN8aahpp-gXUxWd6-4wGqoL%2BeJ%3D5uGAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to