Update: Check out my post introducing the newest version of the plugin.
Today I’m pleased to announce the first version of the cmakebuilder plugin for Hudson. It can be used to build cmake based projects without having to write a shell script (see my previous blog post). Using the scratch-my-own-itch approach I started out implementing only those features that I needed for my cmake projects which are mostly Linux/g++ based so far.
Let’s do a quick walk through the configuration:
1. CMake Path:
If the cmake executable is not in your $PATH variable you can set its path in the global Hudson configuration page.
2. Build Configuration:
To use the cmake builder in your Free-style project, just add “CMake Build” to your build steps. The configuration is pretty straight forward. You just have to set some basic directories and the build type.
The demo config above results in the following behavior (shell pseudocode):
if $WORKSPACE/build_dir does not exist mkdir $WORKSPACE/build_dir end if cd $WORKSPACE/build_dir cmake $WORKSPACE/src -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$WORKSPACE/install_dir make make install
That’s it. Feedback is very much appreciated!!
Originally the plan was to have the plugin downloadable from the hudson plugins site by now but I still have some publishing problems to overcome. So if you are interested, make sure to check out the plugins site again in a few days. I will also post an update here as soon as the plugin can be downloaded.
Update: After fixing some maven settings I was finally able to publish the plugin. Check it out!