Building Jenkins requires at minimum, a fairly recent version of JDK 1.6 (JRE will not suffice, and there are reports indicating that 6u17 was not sufficiently new), as well as Maven (3.0.4+).
To checkout Jenkins, follow the steps below. Then run Maven build at least once to have it generate additional source files:
The git repository mentioned above is where the core of Jenkins is located, i.e. not the plugins. In the root of the repository is a file called changelog.html, which you should update if/when you become a committer.
The first build will take a while, because it has to download all needed dependencies and plugins from Maven central.
You can either use M2Eclipse/m2e to import the Maven projects directly or create Eclipse project files from the command line and then import the projects into Eclipse. There's no consensus in the community as to which approach is better. Experienced Maven users seem to prefer m2eclipse, but people new to Maven seem to find the latter easier and more predictable. For the latter do:
There is a step-by-step guide to working with Eclipse once you've run the above commands.
NetBeans (6.7+) users can just open the POM directly, with File -> Open Project and navigate to the jenkins folder. IntelliJ IDEA users can directly open a Maven POM.
Maven Jetty plugin offers a convenient debugging environment, but for a few reasons we maintain a modified version of the plugin under a different name, so the plugin name is different but the configuration parameters are the same. Do the following to run Jenkins under the debugger, and open http://localhost:8080/ in your browser:
This will launch maven with the debugger port for 8000. You can connect to this port from your IDE by using the remote debug feature. Once this starts running, keep it running. Jetty will pick up all the changes automatically.
If you are developing plugins and want to test them see Plugin Structure#Testing With Jenkins
The sponsor statement from YourKit Java Profiler, which gave us a free license for the Hudson project.
Skip to end of metadata Go to start of metadata