From 09b885b937f6a745076aacb030c5b8f40bd0e857 Mon Sep 17 00:00:00 2001 From: ivanovEV Date: Thu, 14 Mar 2024 20:31:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20.=20=D0=BD=D0=B0?= =?UTF-8?q?=20./?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy b/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy index 1fd343da..84edd897 100644 --- a/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy +++ b/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy @@ -78,7 +78,7 @@ class GetExtensions implements Serializable { localPathToExtension.copyFrom(new URL(extension.path)) } else { // If the path is a local file, copy the file - String localPath = extension.path.startsWith(".") ? "$env.WORKSPACE/${extension.path.substring(1)}" : extension.path + String localPath = extension.path.startsWith("./") ? "$env.WORKSPACE/${extension.path.substring(1)}" : extension.path FilePath localFilePath = FileUtils.getFilePath(localPath) localPathToExtension.copyFrom(localFilePath) }