From 3f0ed27325bf59bcee89078f28023b4100046d18 Mon Sep 17 00:00:00 2001 From: "Oleg.Maiboroda" Date: Mon, 10 Nov 2025 18:47:33 -0500 Subject: [PATCH] Pass correct pathes to artifact manager --- src/main/java/hudson/plugins/robot/RobotPublisher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/hudson/plugins/robot/RobotPublisher.java b/src/main/java/hudson/plugins/robot/RobotPublisher.java index e37d075..893d6bd 100755 --- a/src/main/java/hudson/plugins/robot/RobotPublisher.java +++ b/src/main/java/hudson/plugins/robot/RobotPublisher.java @@ -416,9 +416,8 @@ public void archiveFilesToDestination(Run build, FilePath workspace, Strin Map artifacts = new HashMap<>(); for (FilePath file : artifactFiles) { // Use relative path as artifact name - String pathInArchiveArea = getRelativePath(srcDir, file); - String pathInWorkspaceArea = getRelativePath(workspace, file); - artifacts.put(pathInArchiveArea, pathInWorkspaceArea); + String relativePath = getRelativePath(srcDir, file); + artifacts.put(relativePath, relativePath); } // This will automatically use the configured artifact manager (S3, etc.)