Jenkins:关于build.xml的路径

时间:2011-12-07 09:38:23

标签: jenkins

我在建立工作时得到了以下输出。我的项目根目录中的build.xml不在/var/lib/jenkins/jobs/mbp2/workspace/build.xml中...我试图在

中指定路径
> Invoke ant:
> 
> Target: /home/javier/programacion/mbp/myfirm2/build.xml

但输出相同......

我是詹金斯的新手,并遵循了这个tutorial(所以我安装了这些插件,也许其中一个插件出错了?)。

Started by user anonymous
Checkout:workspace / /var/lib/jenkins/jobs/mbp2/workspace - hudson.remoting.LocalChannel@76996f0c
Using strategy: Default
Last Built Revision: Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master)
Checkout:workspace / /var/lib/jenkins/jobs/mbp2/workspace - hudson.remoting.LocalChannel@76996f0c
Fetching changes from 1 remote Git repository
Fetching upstream changes from file:///home/javier/programacion/mbp/myfirm
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master)
Checking out Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
FATAL: Unable to find build script at /var/lib/jenkins/jobs/mbp2/workspace/build.xml
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE

任何帮助?

哈维

1 个答案:

答案 0 :(得分:11)

Target应该是蚂蚁目标之一(例如packagecompiletest)和构建文件的位置

应根据Build File指定构建文件位置,该Target位于{{1}}之后的下一行。