containerd/Jenkinsfile
Michael Dougherty edc124c8e7 Initial jenkinsfile (#306)
Signed-off-by: Mike Dougherty <mike.dougherty@docker.com>
2016-08-26 10:24:30 -07:00

13 lines
332 B
Groovy

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} ||:"
}
}