开发者

Can Jenkins build Eclipse projects?

I thought I had read somewhere that Jenkins supports integration with Eclipse to build Eclipse projects, but now开发者_运维百科 I cannot find any documentation supporting this. Is this possible to do or am I barking up the wrong tree?


Yes, it is possible. You could use Maven builds with Tycho (see the Minerva example).

You could also use Buckminster to reuse the PDE builds - Jenkins also has a Buckminster plug-in for easier configuration. And it is also possible to build Eclipse with Ant, and execute it with Jenkins.

If I have to choose a way, I would suggest Tycho - it seems the most easy to use from the current items, and would forget Ant, as it is not that well supported.


You can run Eclipse build from the command line: 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%

And you can add this as a batch command to Jenkins

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜