当前位置:  开发笔记 > 运维 > 正文

Jenkins:关于build.xml的路径

如何解决《Jenkins:关于build.xml的路径》经验,为你挑选了1个好方法。

我在建立工作时得到了以下输出.我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

有帮助吗?

哈维



1> Raghuram..:

Target应该是蚂蚁的目标之一(比如说package,compile,test),并没有构建文件的位置.

应该指定构建文件位置Build File,该位置在下一行之后Target.


谢谢,伙计们看看Build File你应该点击"Advance .."
推荐阅读
惬听风吟jyy_802
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有