Can Jenkins可以构建Eclipse项目吗?

问题描述:

我以为我读过Jenkins支持与Eclipse集成来构建Eclipse项目的地方,但现在我找不到任何支持这一点的文档。这是可能做到还是我吠叫错了树?Can Jenkins可以构建Eclipse项目吗?

是的,这是可能的。您可以使用与Tycho(参见the Minerva example)的Maven版本。

您也可以使用Buckminster来重新使用PDE版本--Jenkins也有一个Buckminster plug-in以便于配置。还可以使用Ant构建Eclipse,并使用Jenkins执行它。

如果我必须选择一种方法,我会建议Tycho - 它似乎是最容易使用的当前项目,并且会忘记Ant,因为它没有得到很好的支持。

您可以运行Eclipse在命令行编译: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Fguide%2Fjdt_apt_building_with_apt.htm

C:\path\to\eclipse\eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE% 

而且可以作为一个批处理命令添加此詹金斯