Update Jenkinsfile
This commit is contained in:
parent
fef58121f6
commit
986999ee8a
1 changed files with 7 additions and 2 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue