Skip to content

Commit

Permalink
Initial jenkinsfile (#306)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Dougherty <[email protected]>
  • Loading branch information
mikedougherty authored and crosbymichael committed Aug 26, 2016
1 parent d77bc40 commit edc124c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
wrappedNode(label: "linux && x86_64") {
deleteDir()
checkout scm

stage "build image"
def img = docker.build("dockerbuildbot/containerd:${gitCommit()}")
try {
stage "run tests"
sh "docker run --privileged --rm --name '${env.BUILD_TAG}' ${img.id} make test"
} finally {
sh "docker rmi -f ${img.id} ||:"
}
}

0 comments on commit edc124c

Please sign in to comment.