Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision 86242b01c3a348d611ce55a283629139f4c4f92a)
+++ Jenkinsfile	(revision c7449ce22883517f74841b78f74816bed5141196)
@@ -71,5 +71,6 @@
 	def err = null
 	def log_needed = false
-	currentBuild.result = "SUCCESS"
+	currentBuild.result = "FAILURE"
+	status_prefix = ''
 
 	//Properties sent by the git-hooks (ref name, latest commit hash, previous commit hash)
@@ -81,8 +82,10 @@
 
 	try {
-
-		sh 'git reflog > GIT_COMMIT'
-		git_reflog = readFile('GIT_COMMIT')
+		def out_dir = pwd tmp: true
 		gitRefName = env.BRANCH_NAME
+		dir("../${gitRefName}@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]
@@ -115,4 +118,5 @@
 		}
 
+		currentBuild.result = "SUCCESS"
 	}
 
