Index: Jenkins/TestRegen
===================================================================
--- Jenkins/TestRegen	(revision 64bc1319def43bb478fa9c6979861d19125a171f)
+++ Jenkins/TestRegen	(revision c429ec2b8b9c8dc9f103de0f146ecdab069669fd)
@@ -22,4 +22,6 @@
 	catch (Exception caughtError) {
 		email_error()
+
+		throw caughtError
 	}
 }
@@ -49,7 +51,4 @@
 
 	def install_dir = pwd tmp: true
-
-	//Clean everything from the last build
-	sh 'make maintainer-clean > /dev/null'
 		
 	//Configure the conpilation (Output is not relevant)
@@ -64,4 +63,7 @@
 	//Regenerate the desired tests
 	sh "src/tests/test.py --regenerate-expected ${test_list}"
+
+	//Clean everything from the last build
+	sh 'make maintainer-clean > /dev/null'
 }
 
