Hudson-with-android is a project mainly written in Shell, it's free.
How to install Hudson for building and testing Android apps
This has been superceded by https://github.com/hugojosefson/jenkins-with-android