The build is failed due to - 'java.exe' in not recognised.
To solve this you need to add 'bin' folder of Java installation directory to 'PATH' environment variable. eg if Java is installed at C:/Java then there need to be an entry 'C:/Java/bin' in PATH.
Don't run Ant as part of a Windows batch script. Instead, use the Jenkins plugin that is dedicated to this task. 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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.