diff --git a/Jenkinsfile b/Jenkinsfile index e4f25d3..48115fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -156,15 +156,15 @@ def checkout() } } } - +***REMOVED*** def pre_build() { stage('pre-build') { - script = 'test -f ' + config_path + '/' + device_conf + ' && echo true' + script = 'test -f ' + config_path + device_conf + ' && echo true' printDebug(script) - stdout = sh label: 'check for config file', script: script, returnStdout: true - if(!stdout.trim().equalsIgnoreCase('true')) + statusCode = sh label: 'check for config file', script: script, returnStatus: true + if(statusCode != 0) { currentBuild.result = 'FAILURE' throw new Exception('Error: ' + device_conf + ' not found')