Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 782
Bender the Greatest Avatar asked Aug 30 '11 17:08

Bender the Greatest


People also ask

How do I run a Jenkins file in Eclipse?

Copy paste your Jenkins server URL in the Server field and give it a name (Label), click Finish. You will see your new build server under Builds. Right click on it ---> Plan ---> Open in browser. This will open your Jenkins dashboard inside the Eclipse IDE.

Can Jenkins be used for Java?

Jenkins runs as a server on a variety of platforms including Windows, MacOS, Unix variants and especially, Linux. It requires a Java 8 VM and above and can be run on the Oracle JRE or OpenJDK.


2 Answers

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.

like image 119
Zoltán Ujhelyi Avatar answered Oct 18 '22 15:10

Zoltán Ujhelyi


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

like image 44
Bernát Avatar answered Oct 18 '22 14:10

Bernát