Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision b67dc146decbe73bd0cfa74fede71cc52699c80c)
+++ Jenkinsfile	(revision 57aa6f5643402208339eede1bb76155d4aa079df)
@@ -74,15 +74,22 @@
 
 	//Properties sent by the git-hooks (ref name, latest commit hash, previous commit hash)
-	properties( [[$class: 'ParametersDefinitionProperty', parameterDefinitions: \
-			[[$class: 'StringParameterDefinition', name: 'GitRefName',     defaultValue: 'master', description: 'name of the ref that changed' ], \
-			 [$class: 'StringParameterDefinition', name: 'GitRefNewValue', defaultValue: 'HEAD',   description: 'new commit of the reference' ],  \
-			 [$class: 'StringParameterDefinition', name: 'GitRefOldValue', defaultValue: 'HEAD~1', description: 'old commit of the reference']]   \
-		]] )
+	// properties( [[$class: 'ParametersDefinitionProperty', parameterDefinitions: \
+	// 		[[$class: 'StringParameterDefinition', name: 'GitRefName',     defaultValue: 'master', description: 'name of the ref that changed' ], \
+	// 		 [$class: 'StringParameterDefinition', name: 'GitRefNewValue', defaultValue: 'HEAD',   description: 'new commit of the reference' ],  \
+	// 		 [$class: 'StringParameterDefinition', name: 'GitRefOldValue', defaultValue: 'HEAD~1', description: 'old commit of the reference']]   \
+	// 	]] )
 
 	try {
+
+		sh 'git reflog > GIT_COMMIT'
+		git_reflog = readFile('GIT_COMMIT')
+		gitRefName = env.BRANCH_NAME
+		gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
+		gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
+
 		echo "Properties-start"
-		echo "ref name      : ${GitRefName}"
-		echo "ref new value : ${GitRefNewValue}"
-		echo "ref old value : ${GitRefOldValue}"
+		echo "ref name      : ${gitRefName}"
+		echo "ref new value : ${gitRefNewValue}"
+		echo "ref old value : ${gitRefOldValue}"
 		echo "Properties-stop"
 
