Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 committed Mar 15, 2012
1 parent 9ea05ba commit 1d951fc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/hudson/plugins/perforce/PerforceSCM.java
Expand Up @@ -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();
Expand Down

0 comments on commit 1d951fc

Please sign in to comment.