Skip to content

Commit

Permalink
Adding container start and stop to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Jul 13, 2017
1 parent d9f5687 commit f465ed4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit f465ed4

Please sign in to comment.