Skip to main content

Unfuddle repository callback and

So as you may know I've started a personal project that I hope to turn commercial one day and I'm using Unfuddle to do the "project/development management" which includes a SVN repository.

I've got CruiseControl.Net setup to CI my code and it all works gloriously well but I was chatting to Glyn the bloke that put me onto Unfuddle and he mentioned that Unfuddle has a repository callback feature - rather than have CC.Net ping my Unfuddle SVN every 30 seconds to detect if a commit has occurred Unfuddle will POST details of the latest commit to the url you register as your callback - a much more efficient Pub/Sub approach.

Ok - so how to get a callback to trigger a CC.Net build? Easy!

Attempt 1
  1. I Fiddlered the url that the CC.Net webdashboard calls when you press the "Force Build" button on a project - it looks like this, http://[yourserver]/ccnet/server/local/project/[yourproject]/ViewProjectReport.aspx?ForceBuild=Force
  2. I entered this into the Unfuddle repository callback url
  3. Opened the required firewall ports to allow this traffic into my server (I changed port 80 to something else)
  4. Modified my CC.Net project config to remove all triggers (force build only)
  5. Committed some code...and waited...and build triggered :(

Little grey cells time....
I entered the same callback url into a browser and it worked, hmmmmm
Had I even been called by Unfuddle, maybe they were busy?
I checked the IIS log and there is was a POST from Unfuddle BUT they had stripped the querystring off the url (?ForceBuild=Force) - this is obviously the magic bit that forces a build so...

Attempt 2
  1. Installed the URL Rewrite module from IIS.Net
  2. Configured the URL Rewriter for the ccnet virtual app to include a new rule - rewrite http://[yourserver]/ccnet/[yourproject]/unfuddle.aspx to the actual url (see above) that would trigger the build
  3. Updated the callback url in Unfuddle to http://[yourserver]/ccnet/[yourproject]/unfuddle.aspx
  4. Committed again - bingo, about 20 seconds later my build was triggered :)


HI James,
Thanks for this post, helped me a lot. I'm trying to integrate CruiseControl.NET with Unfullde too.
And I need to to "pull" rather than "push". Any advice on that?

Popular posts from this blog

Walk-Thru: Using Wolfpack to automatically deploy and smoke test your system

First, some history... The advent of NuGet has revolutionised many many aspects of the .Net ecosystem; MyGet, Chocolatey & OctopusDeploy to name a few solutions building upon its success bring even more features to the table.

I also spotted that NuGet could solve a problem I was having with my OSS System Monitoring software Wolfpack; essentially this is a core application framework that uses plugins for extension (Wolfpack Contrib) but how to unify, standardise and streamline how these plugins are made available? NuGet to the rescue again - I wrapped the NuGet infrastructure (I deem NuGet to be so ubiquitous and stable that is has transcended into the software "infrastrucuture" hall of fame) with a new OSS project called Sidewinder. Sidewinder allows me to wrap all my little extension and plugins in NuGet packages and deploy them directly from the Wolfpack application - it even allows me to issue a new version of Wolfpack and have Wolfpack update itself, sweet huh?


Geckoboard Countdown Widget v2

v2 is here, now with added colours! This time using the RAG Numbers widget to display your date countdown - as you get nearer the date the number will change from green to amber then red.

The new url is:!
Note 1: notice the new /rag/ path and the msg querystring param.
Note 2: the original v1 url still works

To use this on your Geckoboard add a new "Custom Widget/RAG Numbers" widget. By default the number will turn amber at 10 or less days to go and red at 3 or less days to go however you can change these with the querystring (see below).

Required querystring params
date: "yyyy-mm-dd" format, this is the target date to countdown totz: timezone offset in hours from GMT that you are in. Can be negative if you are behind GMT
Optional querystring params
msg: the label that appears next to the number of days (remember to encode spaces as +). The default is "Days Remaining" if you…

Resharper add-in idea - highlight IDisposable vars

[Update 18th July 2013]
@RobGibbens and Greg Hurlman picked up on this - Rob pointed out that there is an FxCop rule that can do this and Greg suggested a Visual Studio extension. I've had a quick look at the Visual Studio options and it looks like an "Editor Extension" is a good fit....hmmm, Project New, click...doh...dammit I really don't have time for this but it looks a fun little diversion! I'll update here if I get anything working.

[Original Post]
Had an interesting idea for a Visual Studio Resharper add-in the other day but don't have the time to implement it so thought I would put it out might already exist (and hopefully someone can point me in the right direction) or someone will build it (Darren Voisey where are you?!).

The idea is very simple really - when you have a variable for an object that implements IDisposable it gets highlighted or a tell-tale is displayed to let you know it should be disposed or should be wrapped in a using sta…