1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-01-20 11:54:30 +02:00
This commit is contained in:
ivanovEV 2024-03-14 22:12:30 +03:00
parent 33b3066f9f
commit f45622d533

View File

@ -78,8 +78,8 @@ class GetExtensions implements Serializable {
localPathToExtension.copyFrom(new URL(extension.path)) localPathToExtension.copyFrom(new URL(extension.path))
} else { } else {
// If the path is a local file, copy the file // 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) FilePath localFilePath = FileUtils.getFilePath(extension.path)
localPathToExtension.copyFrom(localFilePath) localPathToExtension.copyFrom(localFilePath)
} }
} }