requiring pod config step before clean-all

Change-Id: Ib05e0067809869871446018a4ea4ea6a5ab86128
diff --git a/Jenkinsfile b/Jenkinsfile
index 0c945e8..63ad81d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,16 +21,17 @@
 
 node ("${devNodeName}") {
     timeout (time: 240) {
-        stage ("Clean-up previous build") {
-            sh "make -C build clean-all || true"
-            sh "rm -rf *"
-        }
         stage ("Parse deployment configuration file") {
             sh returnStdout: true, script: 'rm -rf ${configRepoBaseDir}'
             sh returnStdout: true, script: 'git clone -b ${branch} ${configRepoUrl}'
             deployment_config = readYaml file: "${configRepoBaseDir}${configRepoFile}"
             pod_config = readYaml file: "${configRepoBaseDir}${deployment_config.pod_config.file_name}"
         }
+        stage ("Clean-up previous build") {
+            sh "make -C build PODCONFIG_PATH=../orchestration/profiles/automation/${deployment_config.pod_config.file_name} config"
+            sh "make -C build clean-all || true"
+            sh "rm -rf *"
+        }
         stage ('Remove old head node from known hosts') {
             sh "ssh-keygen -R ${deployment_config.head.ip}"
         }