Initial jenkinsfile (#306)
Signed-off-by: Mike Dougherty <mike.dougherty@docker.com>
This commit is contained in:
parent
d77bc40d5c
commit
edc124c8e7
1 changed files with 13 additions and 0 deletions
13
Jenkinsfile
vendored
Normal file
13
Jenkinsfile
vendored
Normal file
|
@ -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} ||:"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue