From f465ed43407ac2f771dce6740bed36bfc0658f03 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Thu, 13 Jul 2017 16:10:13 -0400 Subject: [PATCH] Adding container start and stop to test --- Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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'