Test step

master
marius 2020-04-21 15:15:38 +02:00
parent 5b7d7a5624
commit e1fbf17d34
1 changed files with 15 additions and 0 deletions

15
Jenkinsfile vendored
View File

@ -15,4 +15,19 @@ node {
app = docker.build("wishi/chuckjokes")
}
stage('Test image') {
/* Ideally, we would run a test framework against our image.
* For this example, we're using a Volkswagen-type approach ;-) */
app.inside {
sh 'echo "Tests passed"'
sh 'pwd'
}
// let's not use the Volkswagen approach for security
}
}