-# Remove global test suite log file, it confuses the tap parser
-rm -f tests/test-suite.log
+# Copy tap logs for the jenkins tap parser
+rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
+
+# Clean the build directory
+$MAKE clean