From 986999ee8a1735caa07ea272cecb85e68ed32e7f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 3 May 2018 11:29:05 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f717e9..9f56140 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,10 +8,15 @@ pipeline { } stage('test') { steps { - sh 'db=`docker run --rm -d postgres`' - sh 'echo $db' + sh 'docker stop pg' + sh 'docker run --rm --name pg -d postgres' sh 'docker image ls' } } } + post { + always { + sh 'docker stop pg' + } + } }