From 9316311dffffa25f859c4f238a06abc1d8f8cead Mon Sep 17 00:00:00 2001 From: ivanovEV Date: Thu, 14 Mar 2024 19:41:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20.=20?= =?UTF-8?q?=D0=BD=D0=B0=20WORKSPACE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy b/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy index 2c2f29c..5de3843 100644 --- a/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy +++ b/src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy @@ -48,7 +48,7 @@ class GetExtensions implements Serializable { String srcDir = getSrcDir(it, sourceDirName) buildExtension(it, srcDir, vrunnerPath, steps) } else if (it.initMethod == InitExtensionMethod.FILE){ - Logger.println("Загрузка расширения ${it.name} из интернета по ссылке ${it.path}") + Logger.println("Загрузка расширения ${it.name} из ${it.path}") loadExtension(it, env) } else { Logger.println("Неизвестный метод инициализации расширения ${it.name}") @@ -77,7 +77,8 @@ class GetExtensions implements Serializable { localPathToExtension.copyFrom(new URL(extension.path)) } else { // If the path is a local file, copy the file - FilePath localFilePath = FileUtils.getFilePath(extension.path) + String localPath = extension.path.startsWith(".") ? "$env.WORKSPACE/${extension.path.substring(1)}" : extension.path + FilePath localFilePath = FileUtils.getFilePath(localPath) localPathToExtension.copyFrom(localFilePath.toURI().toURL()) } }