Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision fdb6ac6d4e784468fa7dc572b572665a64bca5ce)
+++ Jenkinsfile	(revision 6b6c26e4d4c15cdc75225116b8b6563534f4bf7d)
@@ -224,4 +224,15 @@
 //Routine responsible of sending the email notification once the build is completed
 //===========================================================================================================
+@NonCPS
+def SplitLines(String text) {
+	def list = []
+
+	text.eachLine {
+		list += it
+	}
+
+	return list
+}
+
 def GitLogMessage() {
 	if (!Settings || !Settings.GitOldRef || !Settings.GitNewRef) return "\nERROR retrieveing git information!\n"
@@ -231,8 +242,5 @@
 
 	def revText = sh(returnStdout: true, script: "git rev-list ${oldRef}..${newRef}").trim()
-	def revList = []
-	revText.eachLine {
-		revList += it
-	}
+	def revList = SplitLines( revText )
 
 	def gitUpdate = ""
