Index: Jenkins/TestRegen
===================================================================
--- Jenkins/TestRegen	(revision 5d41e22dac0442bc340c8f19592a8a78e194af73)
+++ Jenkins/TestRegen	(revision 7e492e4ce5e85bc792472fd922a5a7ed2f91ce49)
@@ -93,6 +93,4 @@
 def email() {
 
-	def target_dir = pwd tmp: true
-
 	def email_subject = "[cforall dashboard][TEST REGEN# ${env.BUILD_NUMBER}] - Result"
 	def email_body = """This is an automated email from the Jenkins build machine. It was
@@ -100,10 +98,8 @@
 
 	//send email notification
-	emailext body: email_body, subject: email_subject, to: user_email, attachmentsPattern: '${target_dir}/result.patch'
+	emailext body: email_body, subject: email_subject, to: user_email, attachmentsPattern: '**/result.patch'
 }
 
 def email_error() {
-
-	def target_dir = pwd tmp: true
 
 	def email_subject = "[cforall dashboard][TEST REGEN# ${env.BUILD_NUMBER}] - FAILURE"
