Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Cannot find executable for ANT

Tags:

jenkins

ant

I'm using the automatic installation option for Ant but still jenkins complains that it cannot find the executable. Am I missing something? I have given the path to the ant version we use. It has successfully downloaded and unpacked it on the server but it still complains it can't find the executable.

like image 808
jne Avatar asked Jan 11 '23 00:01

jne


2 Answers

Did you install Ant? Is it in Jenkin's PATH? If not, Jenkins cannot use the default version of Ant.

However, if you go into the Jenkins configuration page, you can install various versions of Ant. For example, you may want to install the latest version of Ant, and Ant 1.5 for that one project that cannot use any version of Ant beyond 1.5:

Ant Configurations to use

When you define your project, you can select the version of Ant you want to use. When you select that you want to Invoke Ant as a build step, you are given a drop down menu of what version of Ant you want to use. The first is the Default which is the Ant version found in your PATH. However, if you've gone into Jenkins configuration and downloaded other versions of Ant, you can use one of those instead.

Choosing to use Ant 1.9 instead of the default Ant installed

like image 89
David W. Avatar answered Jan 19 '23 21:01

David W.


I think is more easy to you install ant manually , or you need check the jenkins log file for detailed errors

like image 24
Igor Nunes Avatar answered Jan 19 '23 20:01

Igor Nunes