Index: Jenkins/FullBuild
===================================================================
--- Jenkins/FullBuild	(revision 8089fdeeeead2d96f4245d221486f9a15e556c00)
+++ Jenkins/FullBuild	(revision 98168b962cfa480dd25d7905d6efa2c3bbb01645)
@@ -7,4 +7,6 @@
 node ('master') {
 	def err = null
+
+	final commitId = sh(returnStdout: true, script: 'git rev-parse HEAD')
 
 	try {
@@ -31,5 +33,5 @@
 
 			stage('Package') {
-				build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)]
+				build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number)]
 			}
 		}
@@ -102,20 +104,4 @@
 }
 
-//Helper routine to collect information about the git history
-def collect_git_info() {
-
-	//create the temporary output directory in case it doesn't already exist
-	def out_dir = pwd tmp: true
-	sh "mkdir -p ${out_dir}"
-
-	//parse git logs to find what changed
-	dir("../Cforall_Full_Build@script") {
-		sh "git reflog > ${out_dir}/GIT_COMMIT"
-	}
-	git_reflog = readFile("${out_dir}/GIT_COMMIT")
-	gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
-	gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
-}
-
 //===========================================================================================================
 //Routine responsible of sending the email notification once the build is completed
