workout/Jenkinsfile

17 lines
288 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'docker build --pull -t workout:jenkins .'
}
}
stage('test') {
steps {
sh 'db=`docker run --rm -d postgres`'
sh 'echo $db'
sh 'docker image ls'
}
}
}
}