Skip to content
Permalink
Browse files

[FIXED JENKINS-13073] wipeBeforeBuild no longer flushes the client

flushing the client is kind of a waste of time when wiping out the workspace during a checkout, since we're doing a force-sync immediately after anyways.
  • Loading branch information...
Rob Petti
Rob Petti committed Mar 15, 2012
1 parent 9ea05ba commit 1d951fc34682abc2cac895196210227e829e6ae2
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/main/java/hudson/plugins/perforce/PerforceSCM.java
@@ -705,11 +705,9 @@ public boolean checkout(AbstractBuild build, Launcher launcher,
log.println("Clearing workspace...");
if(wipeRepoBeforeBuild){
log.println("Clear workspace includes .repository ...");
flushWorkspaceTo0(depot, p4workspace, log);
workspace.deleteContents();
} else {
log.println("Note: .repository directory in workspace (if exists) is skipped.");
flushWorkspaceTo0(depot, p4workspace, log);
List<FilePath> workspaceDirs = workspace.list(new WipeWorkspaceFilter());
for(FilePath dir : workspaceDirs){
dir.deleteRecursive();

0 comments on commit 1d951fc

Please sign in to comment.
You can’t perform that action at this time.