JenkinsPluginPackaging

Differences between revisions 1 and 2
Revision 1 as of 2011-03-01 20:24:16
Size: 1387
Editor: host86-154-148-64
Comment:
Revision 2 as of 2011-03-07 11:04:03
Size: 1464
Editor: host86-154-148-64
Comment: page was renamed from ServerTeam/Specs/HudsonSpec/JenkinsPluginPackaging
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from ServerTeam/Specs/HudsonSpec/JenkinsPluginPackaging

Reference Plugin

The Jenkins bazaar plugin was the first plugin packages and is hence the one and only reference at this point in time:

   bzr branch lp:~hudson-ubuntu/+junk/jenkins-bazaar-plugin

Patching the pom.xml

Needs extra build elements and more dependencies - see jenkins-bazaar-plugin - build.patch for an example of what needs to be done.

Why?

Well Jenkins does provide a parent pom file for plugin development - libjenkins-plugin-parent-java. However maven-repo-helper strips out the version numbers from the maven plugins specified in the <build> element of the parent plugin; maven DOES NOT LIKE THIS and dies when operating offline. However, versionless plugins in the direct, local pom.xml file appear to be OK.

This is really ugly but until a toolchain update can be worked out it has to be this way.

Packaging

libjenkins-xx-plugin-java

Should contain the java artifacts produced during the build process - not sure whether this is useful but probably so.

Does not install to /usr/share/java as not useful (use DEB_MAVEN_INSTALL_TO_USJ := false in debian/rules).

jenkins-xx-plugin

Contains the hpi file associated with the plugin. The jenkins upstart script copes with installing new plugins when Jenkins is restarted - just ensure its dropped into /usr/share/jenkins/plugins.

ServerTeam/Jenkins/JenkinsPluginPackaging (last edited 2011-03-07 11:04:03 by host86-154-148-64)