test.ical.ly | getting the web by the balls

Aug/10

19

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. :)

· · · · ·



  • Pingback: Tweets that mention • Quick start guide to install Hudson on Gentoo Linux (or any other) | test.ical.ly -- Topsy.com

  • http://andygrunwald.com/ Andy

    Thanks for this howto and espacially for the github link of the hudson template!

    Just for the notes, this is a howto to use sebastians template on gentoo? Or do you modify something on this template?

  • http://test.ical.ly Christian

    @Andy Indeed I am going to configure two projects to use Sebastians template without any change.

  • http://daraff.ch Ralph Meier

    Hi Christian

    I also worked on a Hudson installation tutorial this week. Damn! :-)

    But with Sebastian’s template it should be easier to set up. I will try in the next few days. Thx for the tip!

  • marek

    :(

    /etc/init.d/hudson: 16: Syntax error: Unterminated quoted string

<<

>>

Theme Design by devolux.nh2.me