简体   繁体   中英

How to run ant build in jenkins?

Please look into the screenshot below

党卫军

党卫军

Am trying to execute in the batch command? what am I making a mistake?

set DYNAMO_HOME=C:/ATG/ATG11.3.2/home
echo DYNAMO_HOME
D:/Users/aswad/Downloads/apache-ant-1.9.15-bin/apache-ant-1.9.15/bin/ant build-atg-ear

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM