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
596 views

1 answer to this question.

0 votes

Hi@sravan,

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,460 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
4,200 views
+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,060 points
1,948 views
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,300 points
1,953 views
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,340 points
1,412 views
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,060 points
7,009 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP