First jenkins build

This commit is contained in:
Dominik Chilla 2019-06-12 16:06:04 +02:00
parent ba992b8558
commit 72bb107e2b
2 changed files with 23 additions and 0 deletions

1
Dockerfile Symbolic link
View File

@ -0,0 +1 @@
docker/debian/Dockerfile

22
Jenkinsfile vendored
View File

@ -0,0 +1,22 @@
node {
def app
stage('Clone repository') {
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
stage('Build image') {
/* This builds the actual image; synonymous to
* docker build on the command line */
app = docker.build("jenkins/sos-milter")
}
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"'
}
}
}