Fix bug

Change-Id: I5cedc33239e75268067d0acb29f9a8430ef05277
diff --git a/jjb/pipeline/voltha-physical-tests.groovy b/jjb/pipeline/voltha-physical-tests.groovy
index f04db9a..85d1f0f 100644
--- a/jjb/pipeline/voltha-physical-tests.groovy
+++ b/jjb/pipeline/voltha-physical-tests.groovy
@@ -99,16 +99,18 @@
 
     stage('Check config files') {
       steps {
-        try {
-          deployment_config = readYaml file: "${localDeploymentConfigFile}"
-        } catch (err) {
-          echo "Error reading ${localDeploymentConfigFile}"
-          throw err
+        script {
+          try {
+            deployment_config = readYaml file: "${localDeploymentConfigFile}"
+          } catch (err) {
+            echo "Error reading ${localDeploymentConfigFile}"
+            throw err
+          }
+          sh returnStdout: false, script: """
+          if [ ! -e ${localKindVolthaValuesFile} ]; then echo "${localKindVolthaValuesFile} not found"; exit 1; fi
+          if [ ! -e ${localSadisConfigFile} ]; then echo "${localSadisConfigFile} not found"; exit 1; fi
+          """
         }
-        sh returnStdout: false, script: """
-        if [ ! -e ${localKindVolthaValuesFile} ]; then echo "${localKindVolthaValuesFile} not found"; exit 1; fi
-        if [ ! -e ${localSadisConfigFile} ]; then echo "${localSadisConfigFile} not found"; exit 1; fi
-        """
       }
     }