diff --git a/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java b/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java index 2ff5d17e..86d79064 100644 --- a/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java +++ b/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java @@ -164,8 +164,7 @@ public void deleteFileAtPath(VirtualFile vRoot, String path) throws IOException, VirtualFile virtualFile = vRoot.child(path); File file = new File(virtualFile.toURI().getPath()); FilePath filePath = new FilePath(file); - File archiveRootFile = new File(vRoot.toURI()); - Delete deleteInstance = new Delete(archiveRootFile); + Delete deleteInstance = new Delete(new File(vRoot.toURI())); filePath.act(deleteInstance); } }