jenkins and ant setup

+1 vote

Hi Team,

we are setup jenkins with Ant plugin while creating build getting below error.

[Project1] $ cmd.exe /C '"ant.bat && exit %%ERRORLEVEL%%"'
'ant.bat' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
May 15, 2020 by sravan
• 150 points

1 answer to this question.

0 votes


I am not sure about your use case. But whenever you install some plugin in jenkins, it should be present in your system also.

I suggest you to install all the software in your system first, where you configured your jenkins. After that install all plugins in your jenkins. If your plugins install properly, then restart your jenkins.

Now go to your jenkins and click on manage jenkins. There you can easily find configure system. Click on configure system and set all the path of your software that you install in your system.

Follow all the steps and try once again.

answered May 15, 2020 by MD
• 95,300 points

Related Questions

+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
2 answers

RVM and Jenkins setup

Try this: . $(/home/RVM_USER/.rvm/bin/rvm env 1.9.3@rails-3.2.3 --path) make sure ...READ MORE

answered Aug 10, 2018 in Jenkins by Nilesh
• 7,040 points
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
0 votes
1 answer
0 votes
1 answer

Is there any difference between jenkins ssh publishers and ansible?

In a Layman’s language they're the same ...READ MORE

answered Apr 9, 2018 in DevOps & Agile by shubham
• 7,320 points
0 votes
2 answers

Is possible for Jenkins to auto start and stop slave nodes?

Try Jenkins Plugin called as Slave SetupPlugin. This ...READ MORE

answered Aug 6, 2018 in Jenkins by Nilesh
• 7,040 points