Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins not executing Ant task

I'm setting up Jenkins for the first time and running into an issue where Jenkins does not appear to even attempt to execute the Ant task I've specified.

I've defined my JDK and Ant installations under Manage Jenkins.(jenkins installations)

I've setup my Job to Invoke Ant using the Targets 'war-all'(job build)

Whether I force a build or wait for it to naturally execute after the next commit, there is nothing in the Build Console Output about attempting to execute the ant task.

Here is a sample Console Output:(console output)

Any ideas as to why it might not be executing would be appreciated. Also tips on how I can find more logging from Jenkins which might provide clues as to why it is not executing would be helpful. I'm not sure what Logger I might specify or even then where the logging information is written on the file system.

like image 273
Sarah Haskins Avatar asked Jun 21 '11 14:06

Sarah Haskins


People also ask

How do I run an ant in Jenkins?

Go to Manage Jenkins -> Manage Plugins -> Available and search for Ant Plugin . After it's installed, go back to your job configuration and select a new build step Invoke Ant .

Can Jenkins execute ant project?

You can install ant manually and integrate it with Jenkins or you can download and install Jenkins through Jenkins.

Does Jenkins support ant scripts?

Jenkins integrates with multiple build tools such as Maven, Gradle, and Ant. In this video, Jenkins expert Kevin Bowersox demonstrates how to automate project builds with Apache Ant, a basic and very useful addition to any developer's continuous integration toolbox.


1 Answers

The problem was that I was selecting "Build multi-configuration project" as the type of my job. When I select "Build a free-style software project" as my job type the Ant task will execute after the SVN update.

like image 200
Sarah Haskins Avatar answered Sep 20 '22 03:09

Sarah Haskins