Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision db583df28be3d9916e5b1b421cc447db34a3f6a2)
+++ Jenkinsfile	(revision fb975a5052d73ae7c15f8f4a02463c75b2fec139)
@@ -172,51 +172,4 @@
 Silent                  : ${ pSilent.toString() }
 """
-
-
-	//Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
-	//Configurations for email format
-	def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase()
-
-	def gitLog = 'Error retrieving git logs'
-	def gitDiff = 'Error retrieving git diff'
-	def gitUpdate = 'Error retrieving update'
-
-	try {
-		gitUpdate = gitBranchUpdate(gitRefOldValue, gitRefNewValue)
-
-		sh "git rev-list --format=short ${gitRefOldValue}...${gitRefNewValue} > GIT_LOG"
-		gitLog = readFile('GIT_LOG')
-
-		sh "git diff --stat ${gitRefNewValue} ${gitRefOldValue} > GIT_DIFF"
-		gitDiff = readFile('GIT_DIFF')
-	}
-	catch (Exception error) {
-		echo error.toString()
-         	echo error.getMessage()
-	}
-
-	def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${status}] - branch ${env.BRANCH_NAME}"
-	def email_body = """This is an automated email from the Jenkins build machine. It was
-generated because of a git hooks/post-receive script following
-a ref change was pushed to the repository containing
-the project "UNNAMED PROJECT".
-
-The branch ${env.BRANCH_NAME} has been updated.
-${gitUpdate}
-
-Check console output at ${env.BUILD_URL} to view the results.
-
-- Status --------------------------------------------------------------
-
-BUILD# ${env.BUILD_NUMBER} - ${status}
-
-- Log -----------------------------------------------------------------
-${gitLog}
------------------------------------------------------------------------
-Summary of changes:
-${gitDiff}
-"""
-
-	echo email_body
 }
 
@@ -427,5 +380,8 @@
 		gitDiff = readFile('GIT_DIFF')
 	}
-	catch (Exception error) {}
+	catch (Exception error) {
+		echo error.toString()
+		echo error.getMessage()
+	}
 
 	def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${status}] - branch ${env.BRANCH_NAME}"
