1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-10 11:10:42 +02:00

Зменил проверку . на ./

This commit is contained in:
ivanovEV 2024-03-14 20:31:27 +03:00
parent ccfbc7cb70
commit 33b3066f9f

View File

@ -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)
}