ONNX CI: add docker image cleanup (#1394)

* change stage name
 * add docker image cleanup
This commit is contained in:
Rafal Blaczkowski 2020-07-20 12:42:52 +02:00 committed by GitHub
parent d4c9af91d8
commit 06119efdf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ pipeline {
gitSubmoduleUpdate(PROJECT_NAME) gitSubmoduleUpdate(PROJECT_NAME)
} }
} }
stage("Build docker image with tests") { stage("Run tests") {
steps{ steps{
dir("${WORKDIR}") { dir("${WORKDIR}") {
buildDockerImage() buildDockerImage()
@ -102,6 +102,9 @@ pipeline {
cleanup { cleanup {
dir("${WORKDIR}") { dir("${WORKDIR}") {
deleteDir() deleteDir()
sh """
docker image prune -f
"""
} }
} }
} }