The easiest way with Ant is to use the Jenkins global configuration to configure an Ant installation, and have it download that Ant installation from Apache. Then you define the job to use the specific Ant version you configured, and it will be downloaded and used for that build.
That keeps your life simpler when you add and remove slave nodes, since you don't need to take extra steps to install and configure Ant on each slave. Jenkins does it for you because you configured Ant in the Jenkins configuration page. Mark Waite On Thu, Feb 6, 2014 at 1:47 PM, Eric Wood <eric.w...@rocketmail.com> wrote: > I have set up a new slave and it needs to run ANT. I have downloaded and > installed. Set ANT_HOME and the PATH. I can run from the cmd prompt. I > stopped the Jenkins java process and restarted it on the slave, but when I > run the job I keep getting: > > $ cmd.exe /C '"ant.bat -file build.xml > -Dcopy-dir.src.dir=C:\Jenkins\workspace\hp-test estSuiteSanityTest_RM > -Dcopy-dir.target.dir=C:JenkinsHP-TestRMV4.4SanityTest_RM copy-dir && exit > %%ERRORLEVEL%%"' > 'ant.bat' is not recognized as an internal or external command, > > > What is the proper way to configure? > > > Thanks, > Eric > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.