From edc124c8e77bac8d1124db669573584215d08635 Mon Sep 17 00:00:00 2001 From: Michael Dougherty Date: Fri, 26 Aug 2016 10:24:30 -0700 Subject: [PATCH] Initial jenkinsfile (#306) Signed-off-by: Mike Dougherty --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..edd8355 --- /dev/null +++ b/Jenkinsfile @@ -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} ||:" + } +}