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

No way to specify ant version in project settings

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • ant-plugin
    • None
    • ubuntu

      Regression from 1.413 to 1.417 (didn't look in intermediate verions).
      I cannot specify "Ant version" in combobox in "Invoke ant" build step.

      So trying to execute job causes

      [myproject] $ ant debug
      FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
      java.io.IOException: Cannot run program "ant" (in directory "/path/to/workspace/myproject"): java.io.IOException: error=2, No such file or directory
      

      Ant version is specified correctly in "Manage Jenkins/Configure System/Ant/Ant installations".

      In 1.413 there was

      [myproject] $ /path/to/ant/home/bin/ant debug
      ...
      

      output.

      The same issue described here.

          [JENKINS-10064] No way to specify ant version in project settings

          voorth added a comment -

          Confirmed.

          Workaround:
          If the wrong "ant" is called, add the following line to each ant builder element in config.xml:

                <antName>$ANT_NAME</antName>
          

          where $ANT_NAME is the name of one of your Ant installations.

          voorth added a comment - Confirmed. Workaround: If the wrong "ant" is called, add the following line to each ant builder element in config.xml: <antName>$ANT_NAME</antName> where $ANT_NAME is the name of one of your Ant installations.

          Then change something in project configuration gui, click "save" and loose these settings again.
          Then edit xml by hands - for each project configuration change.
          Not so convenient.

          andrey regentov added a comment - Then change something in project configuration gui, click "save" and loose these settings again. Then edit xml by hands - for each project configuration change. Not so convenient.

          voorth added a comment -

          agreed - but at least it kept my build from failing...

          voorth added a comment - agreed - but at least it kept my build from failing...

          Chris Lee added a comment -

          Also seeing this on 1.417; downgraded to 1.416 and the problem still occurs (no ant drop-down on job configuration page)

          Chris Lee added a comment - Also seeing this on 1.417; downgraded to 1.416 and the problem still occurs (no ant drop-down on job configuration page)

          Chris Lee added a comment -

          This is a duplicate of JENKINS-10036, which looks like it has been addressed in 1.418.

          Chris Lee added a comment - This is a duplicate of JENKINS-10036 , which looks like it has been addressed in 1.418.

          Thomas Otto added a comment -

          still not fixed in 1.418. So nobody can build a project after touching the config page. This is a showstopper.

          Thomas Otto added a comment - still not fixed in 1.418. So nobody can build a project after touching the config page. This is a showstopper.

          It is marked in http://jenkins-ci.org/changelog as "to-be-released for 1.419"

          andrey regentov added a comment - It is marked in http://jenkins-ci.org/changelog as "to-be-released for 1.419"

          VegeBrain added a comment -

          I just upgraded to version 1.419 this morning and still cannot select the Ant Version I want. On my instance of Jenkins I have 2 different Ant installations, one for Ant version 1.7.1 and one for Ant version 1.8.2. The way I work around this problem is to replace the Invoke Ant build step with an Execute Windows batch command build step. In the Command window I include the full path to the ant.bat file and the Ant command line parameters like this:

          E:\apache-ant-1.8.2\bin\ant.bat -f build.ant -DRELEASE_NAME=%RELEASE_NAME% -DBUILD_NUMBER=%BUILD_NUMBER% main installer_targets

          This is my first post on this forum so please let me know if I have violated any local rules of etiquette so I can correct my mistakes.

          VegeBrain added a comment - I just upgraded to version 1.419 this morning and still cannot select the Ant Version I want. On my instance of Jenkins I have 2 different Ant installations, one for Ant version 1.7.1 and one for Ant version 1.8.2. The way I work around this problem is to replace the Invoke Ant build step with an Execute Windows batch command build step. In the Command window I include the full path to the ant.bat file and the Ant command line parameters like this: E:\apache-ant-1.8.2\bin\ant.bat -f build.ant -DRELEASE_NAME=%RELEASE_NAME% -DBUILD_NUMBER=%BUILD_NUMBER% main installer_targets This is my first post on this forum so please let me know if I have violated any local rules of etiquette so I can correct my mistakes.

          Roman Zenka added a comment -

          I had this problem in 1.418. Upgraded to 1.419 and I get the combobox. I have only one version of Ant set up, though.

          Roman Zenka added a comment - I had this problem in 1.418. Upgraded to 1.419 and I get the combobox. I have only one version of Ant set up, though.

          VegeBrain added a comment -

          I just upgraded to version 1.420 and noticed that the combobox is there for both Ant installs that I have.I replaced my workaround described above with a regular Ant build step and the build went just fine. As a result I think this issue can be closed.

          VegeBrain added a comment - I just upgraded to version 1.420 and noticed that the combobox is there for both Ant installs that I have.I replaced my workaround described above with a regular Ant build step and the build went just fine. As a result I think this issue can be closed.

            Unassigned Unassigned
            andrey_regentov andrey regentov
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: