Skip to content

Commit 3f0ed27

Browse files
author
Oleg.Maiboroda
committed
Pass correct pathes to artifact manager
1 parent 041c149 commit 3f0ed27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/hudson/plugins/robot/RobotPublisher.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,8 @@ public void archiveFilesToDestination(Run<?, ?> build, FilePath workspace, Strin
416416
Map<String, String> artifacts = new HashMap<>();
417417
for (FilePath file : artifactFiles) {
418418
// Use relative path as artifact name
419-
String pathInArchiveArea = getRelativePath(srcDir, file);
420-
String pathInWorkspaceArea = getRelativePath(workspace, file);
421-
artifacts.put(pathInArchiveArea, pathInWorkspaceArea);
419+
String relativePath = getRelativePath(srcDir, file);
420+
artifacts.put(relativePath, relativePath);
422421
}
423422

424423
// This will automatically use the configured artifact manager (S3, etc.)

0 commit comments

Comments
 (0)