Re: How to make a BatchFile Workflow Compatible?

2015-09-04 Thread Jesse Glick
On Wed, Sep 2, 2015 at 10:16 PM, Vinodhini Vijay
 wrote:
> Can I use WindowsBatchScript batch = new WindowsBatchScript("echo hello
> windows"); within my code?

You probably do not want to do that.

What are you trying to accomplish? Start there. Are you writing a
plugin? Why? What would it do? What led you to this question?

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1WNw9pksHtAA5ZnHp57jHbej6kJ%3DLFPTbjFhWFQYuKKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make a BatchFile Workflow Compatible?

2015-09-03 Thread Robert Sandell
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 
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 
>> 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 jenkinsci-de...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com
>>> 
>>> .
>>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/dd36f9e7-1795-44b9-97a7-52e69ee435bf%40googlegroups.com
> 
> .
>
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
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.


How to make a BatchFile Workflow Compatible?

2015-09-02 Thread Vinodhini Vijay
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make a BatchFile Workflow Compatible?

2015-09-02 Thread Robert Sandell
node {
bat 'echo hello windows'
}

On Wed, Sep 2, 2015 at 9:15 AM, Vinodhini Vijay 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com
> 
> .
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0Da9Yv3BiBSLfBkj4LGcpe2%3DAP%2B41i-2HpGH-LBc9pdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make a BatchFile Workflow Compatible?

2015-09-02 Thread Vinodhini Vijay
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  > 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 jenkinsci-de...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/86912cc8-b2d9-4a30-bfa8-5e55c87b6362%40googlegroups.com
>>  
>> 
>> .
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/dd36f9e7-1795-44b9-97a7-52e69ee435bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.