Hi, Through windows cmd, I execute perl script like: perl test.pl and export the installed perl binary in environment variable.
In perl script, we give our perl statements. if we are able to execute the perl script through cmd, we should able to do it through Jenkins also. and we can also define the perl location in shebang statement also. Thanks, On Thu, Oct 25, 2012 at 5:49 PM, Levin, Ilya <ilya.le...@hp.com> wrote: > 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**** > > ** ** >