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 b0eb02b..404d017 100644 --- a/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy +++ b/src/main/groovy/jp/co/soramitsu/devops/docker/DockerPlugin.groovy @@ -192,16 +192,13 @@ class DockerPlugin implements Plugin { -XX:MaxRAMFraction=\${MAX_RAM_FRACTION} -XX:+UseContainerSupport \\ -XX:+PrintFlagsFinal -XshowSettings:vm \${JAVA_OPTIONS}" """ - def customFiles = dockerConfig.files - if (customFiles == null || customFiles.isEmpty()) { - return - } - - // copy files from context dir to dst - customFiles.each { _, dst -> - // remove leading slash from path - def from = dst.replaceAll(/^\//, '') - t.copyFile(from, dst) + if (dockerConfig.files != null) { + // copy files from context dir to dst + dockerConfig.files.each { _, dst -> + // remove leading slash from path + def from = dst.replaceAll(/^\//, '') + t.copyFile(from, dst) + } } // copy jar