Skip to content

Commit

Permalink
[FIXED JENKINS-16412] Don't use the module name for cleanup if flatten
Browse files Browse the repository at this point in the history
is true
  • Loading branch information
svogt committed Jan 18, 2013
1 parent 7366c49 commit 1201f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/scm/AbstractCvs.java
Expand Up @@ -678,7 +678,8 @@ protected void postCheckout(AbstractBuild<?, ?> build, File changelogFile, CvsRe
for (final CvsRepository repository : getRepositories()) {
for (final CvsRepositoryItem repositoryItem : repository.getRepositoryItems()) {
for (final CvsModule module : repositoryItem.getModules()) {
workspace.child(module.getCheckoutName()).act(new FilePath.FileCallable<Void>() {
FilePath target = (flatten ? workspace : workspace.child(module.getCheckoutName()));
target.act(new FilePath.FileCallable<Void>() {
@Override
public Void invoke(File module, VirtualChannel virtualChannel) throws IOException, InterruptedException {
final AdminHandler adminHandler = new StandardAdminHandler();
Expand Down

0 comments on commit 1201f8b

Please sign in to comment.