ant 内容
<?xml version="1.0" encoding="UTF-8"?>
<!-- 删除build路径
-->
<!-- 建立build/classes路径,并编译class文件到build/classes路径下 depends="clean"-->
<!-- 打war包-->
<!-- 拷贝WebRoot下除了WEB-INF和META-INF的两个文件夹-->
<!-- 拷贝lib目录下的jar包-->
<!-- 拷贝build/classes下的class文件-->
单独cmd 运行ant 可以打包
用上jenkins 之后就报一个错. 如:
Started by user luis
Building in workspace C:\Users\JOJO.jenkins\workspace\Ant_test
Updating http://192.168.1xxxx:8080/svn/gsh/GSH3.0/Software/gshGS at revision '2015-08-05T16:53:21.003 +0800'
At revision 9564
no change for http://192.168.1xxxx:8080/svn/gsh/GSH3.0/Software/gshGS since the previous build
[Ant_test] $ cmd.exe /C '"D:\apache-ant-1.9.1\bin\ant.bat http://192.168.1.145:8080/svn/gsh/GSH3.0/Software/gshGS && exit %%ERRORLEVEL%%"'
Buildfile: C:\Users\JOJO.jenkins\workspace\Ant_test\build.xml
BUILD FAILED
Target "http://192.168.1xxx:8080/svn/gsh/GSH3.0/Software/gshGS" does not exist in the project "gshGS". --这里
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
-还有就是我jenkins创建任务的时候就是失败的的.!