我在建立工作时得到了以下输出。我的项目根目录中的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
任何帮助?
哈维
答案 0 :(得分:11)
Target
应该是蚂蚁目标之一(例如package
,compile
,test
)和不构建文件的位置
应根据Build File
指定构建文件位置,该Target
位于{{1}}之后的下一行。