From 586891846a5945d88bdabe172f063b73bddc85a8 Mon Sep 17 00:00:00 2001 From: dolgopolovwork <37849469+dolgopolovwork@users.noreply.github.com> Date: Thu, 30 May 2019 16:17:23 +0300 Subject: [PATCH] Fixed dockerClean (#3) --- .../jp/co/soramitsu/devops/docker/DockerPlugin.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy b/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy index 0c9bf29..05e7e6a 100644 --- a/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy +++ b/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy @@ -171,8 +171,10 @@ class DockerPlugin implements Plugin { project.tasks.register(SoraTask.dockerClean).configure { Task t -> t.group = DOCKER_TASK_GROUP t.description = "Clean docker context dir" - - getDockerContextDir(project).deleteDir() + t.doLast { + println(format('clean docker context dir')) + getDockerContextDir(project).deleteDir() + } } }