Index: Jenkins/Distribute
===================================================================
--- Jenkins/Distribute	(revision 34dcc78c853eacbbe0431fac60e0739cadab39c2)
+++ Jenkins/Distribute	(revision a9a1d06b7626025ebf51cc96b6fed49240cef780)
@@ -32,7 +32,7 @@
 				SrcDir    = pwd tmp: false
 
-				Tools.clean()
+				Tools.Clean()
 
-				Tools.checkout( commit )
+				Tools.Checkout( commit )
 			}
 
@@ -45,5 +45,5 @@
 	//If an exception is caught we need to change the status and remember to
 	//attach the build log to the email
-	catch (Exception caughtError) {
+	// catch (Exception caughtError) {
 		// //rethrow error later
 		// err = caughtError
@@ -56,5 +56,5 @@
 		// //Store the result of the build log
 		// currentBuild.result = "${StageName} FAILURE".trim()
-	}
+	// }
 
 	finally {
Index: Jenkins/tools.groovy
===================================================================
--- Jenkins/tools.groovy	(revision 34dcc78c853eacbbe0431fac60e0739cadab39c2)
+++ Jenkins/tools.groovy	(revision a9a1d06b7626025ebf51cc96b6fed49240cef780)
@@ -24,5 +24,5 @@
 // Common compilation routines
 //===========================================================================================================
-def clean() {
+def Clean() {
 	BuildStage('Cleanup', true) {
 		// clean the build by wipping the build directory
@@ -33,10 +33,15 @@
 }
 
-def checkout(commitHash = null) {
+def Checkout(commitHash = null) {
 	BuildStage('Checkout', true) {
 		//checkout the source code and clean the repo
-		final scmVars = ref ? checkout scm : checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
+		if(commitHash) {
+			final scmVars = checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
+			echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
+		} else {
 
-		echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
+			final scmVars = checkout scm
+			echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
+		}
 	}
 }
