diff --git a/Jenkinsfile b/Jenkinsfile index a0b0d9b..87f1ee7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,16 +45,24 @@ node('docker') { handleError(message) } + stage 'Start container' + + sh 'bin/ci-run.sh' + stage 'Tests' - + try{ sh 'bin/test.sh &> debug' } catch(error) { def error_details = readFile('./debug'); - def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}" + def message = "BUILD ERROR: There was a problem testing ${imagename}:${tag}. \n\n ${error_details}" sh "rm -f ./debug" handleError(message) } + + stage 'Stop container' + + sh 'bin/ci-stop.sh' stage 'Push'