Friday, July 12, 2013

Jenkins svnmerge plugin

The Jenkins SVN Merge plugin automates creating branches, integrating changes on branches back to trunk, and merging trunk changes back to your branch. It can also be used as a post-build publishing action, so that a passing branch job can automatically be merged back to trunk.

I discovered this plugin the other day, but I was disappointed that the second time I tried to integrate from my branch to trunk, it threw a NullPointerException. After some investigation into SVNKit and the Jenkins Subversion plugin, I figured out that the error was in the svnmerge plugin itself. So, I got myself a Github account, made a fork of the plugin that fixes the issue, sent a pull request, and it is now built and available for download.

This is my first use of Github, and I'm finding that the distributed development paradigm is pretty slick.