我在建立工作时得到了以下输出.我build.xml
在我的项目的根目录中没有/var/lib/jenkins/jobs/mbp2/workspace/build.xml
...我试图指定路径
> Invoke ant: > > Target: /home/javier/programacion/mbp/myfirm2/build.xml
但输出是一样的......
我是Jenkins的新手并且遵循了这个教程(所以我安装了这些插件,也许其中一个是错误的?).
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
有帮助吗?
哈维
Target
应该是蚂蚁的目标之一(比如说package
,compile
,test
),并没有构建文件的位置.
应该指定构建文件位置Build File
,该位置在下一行之后Target
.