Jenkins Cannot find executable for ANT

I use the silent installation option for Ant, but still Jenkins complains that he cannot find the executable. Am I missing something? I gave the path to the version of Ant used. He successfully downloaded and unpacked it on the server, but he still complains that he cannot find the executable.

+4
source share
3 answers

Did you install Ant? Is this the Jenkin WAY? If not, Jenkins cannot use the default version of Ant.

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

Ant Configurations to use

When you define your project, you can choose the version of Ant you want to use. When you choose that you want to call Ant as a build step, you are presented with a drop-down menu which version of Ant you want to use. The first is that Defaultwhich is the version of Ant found in your PATH. However, if you entered the Jenkins configuration and downloaded other versions of Ant, you can use one of them.

Choosing to use Ant 1.9 instead of the default Ant installed

+7
source

, ant , jenkins

+1

Found what I missed. I had to add the name of the directory in which it unpacks the ant file in the Field "Subdirectory of the extracted archive". Recall that we are using a rather old version of ant. (1.7.0).

+1
source

Source: https://habr.com/ru/post/1532136/


All Articles