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.)