Skip to content

Commit

Permalink
Using correct workspace path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed May 2, 2015
1 parent acc6801 commit da81731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Map<String, List<Violation>> getViolationsPerFile() {
}
}
}
doLog(FINE, "Found " + violationsPerFile.size() + " violations");
return violationsPerFile;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public static void jvctsPerform(ViolationsToStashConfig config, AbstractBuild<?,
listener.getLogger().println("Running Jenkins Violation Comments To Stash");
listener.getLogger().println("Will comment " + config.getStashPullRequestId());

File workspace = build.getRootDir();
File workspace = new File(build.getExecutor().getCurrentWorkspace().toURI());
doLog(FINE, "Workspace: " + workspace.getAbsolutePath());
doPerform(config, workspace, listener);
} catch (Exception e) {
logger.log(SEVERE, "", e);
Expand Down

0 comments on commit da81731

Please sign in to comment.