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() + } } }