Update Jenkinsfile

This commit is contained in:
Gabriel Augendre 2018-05-03 11:29:05 +02:00 committed by GitHub
parent fef58121f6
commit 986999ee8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -8,10 +8,15 @@ pipeline {
} }
stage('test') { stage('test') {
steps { steps {
sh 'db=`docker run --rm -d postgres`' sh 'docker stop pg'
sh 'echo $db' sh 'docker run --rm --name pg -d postgres'
sh 'docker image ls' sh 'docker image ls'
} }
} }
} }
post {
always {
sh 'docker stop pg'
}
}
} }