Index: Jenkins/tools.groovy
===================================================================
--- Jenkins/tools.groovy	(revision 032fd9376705d6771a7f3ab0cfd7abfd167032f6)
+++ Jenkins/tools.groovy	(revision 68f2e42833f547f34b6b6b3fc81853a6a54bf6f3)
@@ -36,5 +36,5 @@
 	BuildStage('Checkout', true) {
 		//checkout the source code and clean the repo
-		if(ref) {
+		if(commitHash) {
 			final scmVars = checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
 			echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
