From 067a053270bec9b64a13fa3b6d398fb35d700b47 Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Thu, 20 Jan 2022 15:28:43 +0100 Subject: [PATCH] Docker run image shortened --- .../com/cognifide/gradle/environment/docker/DockerRunSpec.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/cognifide/gradle/environment/docker/DockerRunSpec.kt b/src/main/kotlin/com/cognifide/gradle/environment/docker/DockerRunSpec.kt index cc1cea5..836e7b8 100644 --- a/src/main/kotlin/com/cognifide/gradle/environment/docker/DockerRunSpec.kt +++ b/src/main/kotlin/com/cognifide/gradle/environment/docker/DockerRunSpec.kt @@ -58,9 +58,10 @@ open class DockerRunSpec(docker: Docker) : DockerInvokeSpec(docker) { } }) operation.set(environment.obj.provider { + val imageShort = imageOrFail.substringAfterLast("/") when { - command.orNull.isNullOrBlank() -> "Running image '$imageOrFail'" - else -> "Running image '$imageOrFail' with command '${command.get()}'" + command.orNull.isNullOrBlank() -> "Running image '$imageShort'" + else -> "Running image '$imageShort' with command '${command.get()}'" } }) }