Jenkins 可以构建 Eclipse 项目吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7247344/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can Jenkins build Eclipse projects?
提问by Bender the Greatest
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?
我以为我在某处读到 Jenkins 支持与 Eclipse 集成以构建 Eclipse 项目,但现在我找不到任何支持这一点的文档。这是可能的,还是我吠错了树?
采纳答案by Zoltán Ujhelyi
Yes, it is possible. You could use Maven builds with Tycho(see the Minerva example).
对的,这是可能的。您可以将 Maven 构建与Tycho 一起使用(请参阅Minerva 示例)。
You could also use Buckminsterto reuse the PDE builds - Jenkins also has a Buckminster plug-infor easier configuration. And it is also possible to build Eclipse with Ant, and execute it with Jenkins.
您还可以使用Buckminster来重用 PDE 构建 - Jenkins 也有一个Buckminster 插件,可以更轻松地进行配置。也可以用 Ant 构建 Eclipse,用 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.
如果我必须选择一种方式,我会建议第谷 - 它似乎是当前项目中最容易使用的,并且会忘记 Ant,因为它没有得到很好的支持。
回答by Bernát
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
您可以从命令行运行 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%
And you can add this as a batch command to Jenkins
您可以将此作为批处理命令添加到 Jenkins