Skip to content
Permalink
Browse files

[JENKINS-48061] Clean up after test

  • Loading branch information...
rsandell committed Mar 28, 2018
1 parent cb2e753 commit d21ba4ea1011168e53bf82feb2466295a3da118e
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/test/java/jenkins/plugins/git/GitBranchSCMHeadTest.java
@@ -6,16 +6,19 @@
import org.apache.commons.io.FileUtils;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.recipes.LocalData;

import java.io.File;
import java.io.IOException;
import java.net.URL;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assume.assumeFalse;

public class GitBranchSCMHeadTest {
@@ -41,6 +44,14 @@ public void before() throws Throwable {
}
};

@After
public void removeRepos() throws IOException {
final File path = new File("/tmp/JENKINS-48061");
if (path.exists() && path.isDirectory()) {
FileUtils.deleteDirectory(path);
}
}


@Issue("JENKINS-48061")
@Test

0 comments on commit d21ba4e

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