Getting error while building ant job in jenkins
Getting error while building ant job in jenkins
I am trying to build an ant job in Jenkins but facing with below issues,
Started by user UAE Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/TestItem [TestItem] $ ant -file build.xml Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Build step 'Invoke Ant' marked build as failure Finished: FAILURE
vito Selected answer as best September 21, 2021
You need to configure Ant in Jenkins to build Ant jobs. Follow the below steps to do the same,
- In Jenkins, Manage Jenkins
- Global Tool Configuration
- Ant
- Add Ant
- Provide a name (eg: Ant) and keep the checkbox marked
- Save
Build the job now.
vito Selected answer as best September 21, 2021