From 72bb107e2b35614747986dead958171931be22fc Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Wed, 12 Jun 2019 16:06:04 +0200 Subject: [PATCH] First jenkins build --- Dockerfile | 1 + Jenkinsfile | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 120000 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 120000 index 0000000..894720b --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +docker/debian/Dockerfile \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index e69de29..3d4de34 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"' + } + } +}