Moving build cleanup at the end of the jenkins file in the finally block

Change-Id: If5fc49e5bd25e41b7add7c19c6c217eae93e62fa
diff --git a/Jenkinsfile.newBuildSystem b/Jenkinsfile.newBuildSystem
index 82e3ec6..872d607 100644
--- a/Jenkinsfile.newBuildSystem
+++ b/Jenkinsfile.newBuildSystem
@@ -33,9 +33,7 @@
 
 node ("${config.dev_node.name}") {
     timeout (time: 240) {
-        stage ('Clean up old build') {
-            sh "make -C build clean-all || true"
-            sh "rm -rf *"
+        stage ('Remove old head node from known hosts') {
             sh "ssh-keygen -R ${config.head.ip}"
         }
         stage ('Checkout cord repo') {
@@ -227,6 +225,8 @@
                 currentBuild.result = 'FAILURE'
                 step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false])
             } finally {
+                sh "make -C build clean-all || true"
+                sh "rm -rf *"
             }
             echo "RESULT: ${currentBuild.result}"
        }