I don't fully understand what you are trying to do. The steps should only
be instantiated within the context of a workflow. If you are implementing
you own workflow steps there is some documentation on doing that here:
https://github.com/jenkinsci/workflow-plugin/blob/master/step-api/README.md
probably mimicking DurableTaskStep and using a Launcher like it does.

On Thu, Sep 3, 2015 at 7:16 AM, Vinodhini Vijay <[email protected]>
wrote:

> Thank you!
>
> So, the corresponding class file is WindowsBatchScript from package
> org.jenkinsci.plugins.durabletask;?
>
> Can I use WindowsBatchScript batch = new WindowsBatchScript("echo hello
> windows"); within my code? Is there any points to be noted, if I use this
> way ?
>
> Sorry if it is really silly question. (I am very much interested in
> learning this and understanding this more :) )
>
> Thank you!
>
> On Wednesday, 2 September 2015 21:17:32 UTC+5:30, Robert Sandell wrote:
>>
>> node {
>>     bat 'echo hello windows'
>> }
>>
>> On Wed, Sep 2, 2015 at 9:15 AM, Vinodhini Vijay <[email protected]>
>> wrote:
>>
>>> Hello All,
>>>
>>> We create objects of  BatchFile and use. But this is not Workflow
>>> Compatible ( got to know from the signature of method "perform").
>>>
>>> Is there any workflow compatible version of BatchFile already available?
>>>
>>> Thank you!
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Developers" 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-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Robert Sandell
>> *Software Engineer*
>> *CloudBees Inc.*
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" 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-dev/dd36f9e7-1795-44b9-97a7-52e69ee435bf%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/dd36f9e7-1795-44b9-97a7-52e69ee435bf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/CALzHZS24J7yyk7pNuqBmsuat%2BR%3DWKPYZBkYX6E770Z65_2SHpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to