The bugs described in this post are now fixed (since I became the new maintainer of this plugin π
If you use Buckminster for your builds, and have a personal Jenkins build system, you might want to rely on the Buckminster Plugin, which can be installed directly from Jenkins:
Unfortunately this plugin has some bugs (at least two) which somehow prevent you from using it, especially for new Eclipse versions. But it is quite easy to fix them once you know how; I found the solutions on the web, but I thought I could summarize them here to have them in one place.
First, if you’re not using Internet Explorer, then you’ll not be able to add build steps (which makes the plugin useless π
As documented in the bug report (not yet fixed): you need to edit this file (all paths are intended to be prefixed with your Jenkins path)
plugins/buckminster/WEB-INF/classes/hudson/plugins/buckminster/EclipseBuckminsterBuilder/config.jelly
and “remove the <f:section></f:section> tags which surround the <f:advanced> entries”. This is expressed by this diff with the original file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
*** config.jelly 2012-05-11 22:13:59.000000000 +0200 --- config.jelly~ 2011-04-01 00:30:56.000000000 +0200 *************** *** 46,52 **** <f:entry title="${%Script File}" field="userCommand" help="${rootURL}/plugin/buckminster/help-customCommand.html"> <f:textbox name="userCommand" value="${instance.getUserCommand()}" /> </f:entry> ! <f:advanced> <f:entry title="${%Change Workspace}" help="${rootURL}/plugin/buckminster/help-customWorkspace.html"> <f:textbox name="userWorkspace" value="${instance.getUserWorkspace()}" /> --- 46,52 ---- <f:entry title="${%Script File}" field="userCommand" help="${rootURL}/plugin/buckminster/help-customCommand.html"> <f:textbox name="userCommand" value="${instance.getUserCommand()}" /> </f:entry> ! <f:section title="Advanced Options"> <f:advanced> <f:entry title="${%Change Workspace}" help="${rootURL}/plugin/buckminster/help-customWorkspace.html"> <f:textbox name="userWorkspace" value="${instance.getUserWorkspace()}" /> *************** *** 67,71 **** <f:textarea name="equinoxLauncherArgs" value="${instance.getEquinoxLauncherArgs()}" /> </f:entry> </f:advanced> ! </j:jelly> \ No newline at end of file --- 67,71 ---- <f:textarea name="equinoxLauncherArgs" value="${instance.getEquinoxLauncherArgs()}" /> </f:entry> </f:advanced> ! </f:section> </j:jelly> |
Then, with the default configuration of the plugin, you won’t be able to install a recent version of Buckminster, thus you need to provide a custom .json (to put in userContent/buckminster/buckminster.json) file to allow new versions of Buckminster to be installed (an older example is found here); this is the json file I use:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
{"buckminsters":[ {"id":"3.7", "name":"Buckminster 3.7", "url":"http://ftp.halifax.rwth-aachen.de/eclipse/tools/buckminster/products/director_latest.zip", "iu":"org.eclipse.buckminster.cmdline.product", "repositoryURL":"http://download.eclipse.org/tools/buckminster/headless-3.7", "repositories":[ { "url":"http://download.eclipse.org/tools/buckminster/headless-3.7", "features":[ {"id":"org.eclipse.buckminster.core.headless.feature"}, {"id":"org.eclipse.buckminster.cvs.headless.feature"}, {"id":"org.eclipse.buckminster.emma.headless.feature"}, {"id":"org.eclipse.buckminster.git.headless.feature"}, {"id":"org.eclipse.buckminster.maven.headless.feature"}, {"id":"org.eclipse.buckminster.pde.headless.feature"} ]}, {"url":"http://download.cloudsmith.com/buckminster/external-3.7", "features":[ {"id":"org.eclipse.buckminster.subclipse.headless.feature"} ] } ] }, {"id":"4.2", "name":"Buckminster 4.2", "url":"http://ftp.halifax.rwth-aachen.de/eclipse/tools/buckminster/products/director_latest.zip", "iu":"org.eclipse.buckminster.cmdline.product", "repositoryURL":"http://download.eclipse.org/tools/buckminster/headless-4.2", "repositories":[ { "url":"http://download.eclipse.org/tools/buckminster/headless-4.2", "features":[ {"id":"org.eclipse.buckminster.core.headless.feature"}, {"id":"org.eclipse.buckminster.cvs.headless.feature"}, {"id":"org.eclipse.buckminster.git.headless.feature"}, {"id":"org.eclipse.buckminster.maven.headless.feature"}, {"id":"org.eclipse.buckminster.pde.headless.feature"} ]}, {"url":"http://download.cloudsmith.com/buckminster/external-4.2", "features":[ {"id":"org.eclipse.buckminster.subclipse.headless.feature"} ] } ] } ] } |
Hope this helps π