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

          andrey regentov created issue -

          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.
          voorth made changes -
          Link New: This issue duplicates JENKINS-10036 [ JENKINS-10036 ]
          kutzi made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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.
          Thomas Otto made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

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

              Created:
              Updated:
              Resolved: