mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-12 18:10:18 +00:00
First jenkins build
This commit is contained in:
parent
ba992b8558
commit
72bb107e2b
1
Dockerfile
Symbolic link
1
Dockerfile
Symbolic link
@ -0,0 +1 @@
|
||||
docker/debian/Dockerfile
|
||||
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -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"'
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user