Quick start guide to install Hudson on Gentoo Linux (or any other)
Lately I was playing around with my old Hudson installation to try and use Sebastian Bergmanns PHP Hudson template. But in the end I only had it halfway working and was increasingly confused by the number of plugins I had installed.
So I decided to make a backup of everything and start from scratch with a fresh install. Only there are no official ebuild for my Gentoo box..
Actually it’s quite simple to do a quick installation.
That’s all we need to download and “install”. Now we need a proper init script to start it.
This assumes that you have created a system user hudson-ci.
Now you can run /etc/init.d/hudson start and browse to localhost:8082 (takes a few seconds to get there..).
From there you can navigate to Manage Hudson/Manage Plugins to install the plugins required by Sebastians template.
- Checkstyle (for processing PHP_CodeSniffer logfiles in Checkstyle format)
- DRY (for processing phpcpd logfiles in PMD-CPD format)
- HTML Publisher (for publishing the PHPUnit code coverage report, for instance)
- JDepend (for processing PHP_Depend logfiles in JDepend format)
- PMD (for processing phpmd logfiles in PMD format)
- Template Project (for using php-hudson-template as a template for Hudson jobs)
- Violations (for processing various logfiles)
- xUnit (for processing PHPUnit logfiles in JUnit format)
And if you work on GitHub like I do you will want to install the following plugins as well.
- Git Plugin
- GitHub Plugin
Shut down Hudson for a minute and navigate to your hudson installation to create the template job.
That’s all for a fresh PHP Hudson setup.
Next post I will create the sfImageTransformExtraPlugin job again.