Usually that means the environment in which Jenkins is executing does not know the path to the perl installation.
Create a job, assign it an action to echo %PATH% and then you can see the environment which Jenkins is running. >________________________________ > From: "Levin, Ilya" <ilya.le...@hp.com> >To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> >Sent: Thursday, October 25, 2012 6:19 AM >Subject: RE: calling perl scripts from jenkins > > > >That is exactly what I did. >The problem is that Jenkins doesn’t recognize the perl command. >I have Perl on my machine, i can run the command via command line. >Somehow I need to show Jenkins where perl is. >(tried with Env Variables – doesn’t work). > >Thanks again. > >From:jenkinsci-users@googlegroups.com >[mailto:jenkinsci-users@googlegroups.com] On Behalf Of mitesh makhija >Sent: יום ה 25 אוקטובר 2012 14:12 >To: jenkinsci-users@googlegroups.com >Subject: Re: calling perl scripts from jenkins > >Hi, > >Create a job. >Through build, add build step, you can use either Execute windows batch >command or Execute Shell. >If I select Execute Windows Batch Command, In command I can call perl script. > >perl c:/test.pl > >Thanks, >Mitesh >On Thu, Oct 25, 2012 at 5:35 PM, Levin, Ilya <ilya.le...@hp.com> wrote: >Hi, > >Seems to be quite a simple task but still unable to achieve this. >How can I call a perl script from inside Jenkins? > >Thanks > > >