Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18463

Unable to specify Ant build file for Jenkins project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ant-plugin
    • None
    • Windows Server 2008 R2

      Hi all,

      I have tried to create a new Job with Jenkins.
      However each time when I configure the 'Invoke Ant' option
      and tried to link to the build file (ie: build.xml, which is the auto generated file from the Eclipse project)
      I would get the following error message:

      $cmd.exe /C "ant.bat -file build.xml && exit %%ERRORLEVEL%%"'
      '"jave.exe"' is not recognized as an internal or external command, operable program or batch file
      Build step 'Invoke Ant' marked build as failure..

      I have already specified the JAVA_HOME and ANT_HOME environment variable.
      However, it still reflects the error.
      Also, my project submitted is a Dynamic Web Project done in Eclipse IDE consisting of a basic jsp and servlet.
      Hope the above information helps.

      Appreciate any help rendered.

      Thanks!

            Unassigned Unassigned
            gtjy Gladys Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: