Hi Les Thanks for responding. We're new to Groovy too. Any concrete example to show how to get it to work on both platforms in a single job ?
On Friday, February 1, 2013 3:09:51 PM UTC-8, LesMikesell wrote: > > On Fri, Feb 1, 2013 at 4:33 PM, zw <[email protected] <javascript:>> > wrote: > > > > Thanks for responding. > > We don't have a build script for this project. > > We have 1 .sh for Linux and 1 .ps1 script for Windows. > > It looks there isnt a way to select a Build step based on our Platform > label > > configured on Slave axis. > > If you can make a 1.bat file to execute on windows and rename 1.sh to > just 1 for linux, you can use the Xshell plugin to run "1' as your > build step and it will work in both environments because windows will > automatically look for the .bat extension. If you need something > more complicated than that you can use the groovy plugin to make > something that will start on either platform and then do appropriate > things in either environment. > > -- > Les Mikesell > [email protected] <javascript:> > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
