workout/Jenkinsfile

18 lines
288 B
Text
Raw Normal View History

2018-05-03 10:11:30 +02:00
pipeline {
2018-05-03 11:02:59 +02:00
agent any
2018-05-03 10:11:30 +02:00
stages {
stage('Build') {
steps {
2018-05-03 11:09:54 +02:00
sh 'docker build --pull -t workout:jenkins .'
2018-05-03 10:11:30 +02:00
}
}
2018-05-03 11:26:19 +02:00
stage('test') {
steps {
sh 'db=`docker run --rm -d postgres`'
sh 'echo $db'
sh 'docker image ls'
}
}
2018-05-03 10:11:30 +02:00
}
2018-05-03 11:02:34 +02:00
}