If you're not using one of the typical build tools (maven, ant, gradle,
etc.), then you might consider the XShell plugin.  I use it to allow me to
define a single job (multi-configuration, for example) which can execute on
both Windows and Linux.  My typical XShell command line was something like
"python setup.py" or "python my_build_script"

Mark Waite

On Sat, Sep 27, 2014 at 5:35 AM, nitin dhadke <[email protected]>
wrote:

> Hi All,
>
>         I have copied jenkins job from windows to linux(cloud instance)
> with jenkins-cli.
> java -jar jenkins-cli.jar -s http://local-server get-job jobname
> >config.xml
> java -jar jenkins-cli.jar -s http://remote-server create-job jobname
> <config.xml
>
>         But problem is that copied job from windows is not executable on
> linux,so
> I have changed in config file(BatchFile to Shell) i.e
> /*config.xml*/
>
> <builders>
>     <hudson.tasks.Shell>
>       <command>echo hello</command>
>     </hudson.tasks.Shell>
>   </builders>
> Also it is not working.
>
> Thanks & Regards,
> Nitin
>
> --
> 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/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
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/d/optout.

Reply via email to