浏览代码

Add to cleanup code deletion of docker images

Vadim Surkov 6 年之前
父节点
当前提交
f5ccc13ac8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Jenkinsfile

+ 1 - 0
Jenkinsfile

@@ -116,6 +116,7 @@ pipeline {
     always {
       echo "CleaningUp work diretory"
       deleteDir()
+      sh "docker image rm -f $(docker image ls -q ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER})"
     }
     failure {
       mail charset: 'UTF-8',