github.com/jzwlqx/containerd@v0.2.5/Jenkinsfile (about) 1 wrappedNode(label: "linux && x86_64") { 2 deleteDir() 3 checkout scm 4 5 stage "build image" 6 def img = docker.build("dockerbuildbot/containerd:${gitCommit()}") 7 try { 8 stage "run tests" 9 sh "docker run --privileged --rm --name '${env.BUILD_TAG}' ${img.id} make test" 10 } finally { 11 sh "docker rmi -f ${img.id} ||:" 12 } 13 }