How to create a Hudson account and receive email notifications of build problems

  1. Click on the “sign up” link in the upper-right corner of the page.
  2. Fill in the sign up form.
  3. Click the “Sign up” button.
  4. Test your account to make sure you can log in (use the “log in” link).
  5. Go back to the main page (use the bread-crumb links in the upper-left corner of the page).
  6. Click on the project group you with to receive build notifications for (most likely “DEG Alpha Project Group”, as of 2011).
  7. Click on the “configure” link on the left side of the page.
  8. Scroll to the bottom of the project group's configuration page.
  9. Find the “Build Settings” section and the “E-mail Notification Recipients” text box. There will likely be some email addresses in this box already.
  10. Add your preferred email address to the list, space-delimited.
  11. Click the “Save” button at the bottom of the page.
  12. You should now receive an email from Hudson whenever this project group is built and there are either unit test failures or compilation errors – and also when there is a successful build immediately following a failure.

How to Tunnel in to Hudson

Port 8080 is only open from within the CS network, and we want to keep it that way. If you'd like to access Hudson from outside the CS network, it's not hard to create a tunnel through ssh (or Putty, on Windows).

  1. Log in to dithers with a command like this: ssh username@dithers.cs.byu.edu -L 8080:127.0.0.1:8080
  2. On your local machine, go to http://localhost:8080/ (instead of http://dithers.cs.byu.edu:8080/).

Ssh accepts multiple -L parameters, so you can repeat for other ports you want, such as 3306 for MySQL. The general formula is -L local-port:remote-host-IP-address:remote-port. Ssh tunnels are open as long as you're connected via ssh. When you log out, the tunnels are closed. I have a shell script on my Mac that looks like this:

#!/bin/bash
ssh swliddle@dithers.cs.byu.edu -L 3390:192.168.19.131:3389 -L3306:127.0.0.1:3306 -L 8080:127.0.0.1:8080

The first tunnel lets me access remote desktop on one of the lab machines (I connect to localhost:3390 to initiate the RDP session). The second tunnel is for MySQL on dithers (I connect to localhost:3306), and the third gives access to Hudson.

For Windows machines, you can set up Putty tunnels using its connection property editor. Run Putty, then on the left hand side in the property tree choose Connection|SSH|Tunnels. Enter 8080 as the “Source port” (local port), and 127.0.0.1:8080 as the “Destination” (remote IP address and remote port). Then click the Add button.

This is what you should see after adding the ssh tunnel:

Now set up the rest of your connection in the usual Putty manner.

deg/using-hudson.txt · Last modified: 2015/06/12 10:57 by ryancha
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0