Skip to content
Permalink
Browse files
[JENKINS-18678] Reproduced problem in test.
(cherry picked from commit 1943801)
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 65502e1 commit 9c7b5a1373bf0bf88a95c18afe166da3841fa42e
Showing 1 changed file with 10 additions and 0 deletions.
@@ -373,6 +373,16 @@ public class AbstractProjectTest extends HudsonTestCase {
assert !b.rootDir.isDirectory();
}

@Bug(18678)
public void testRenameJobLostBuilds() throws Exception {
def p = createFreeStyleProject("initial");
assertBuildStatusSuccess(p.scheduleBuild2(0));
assertEquals(1, p.getBuilds().size());
p.renameTo("edited");
p._getRuns().purgeCache();
assertEquals(1, p.getBuilds().size());
}

@Bug(17575)
public void testDeleteRedirect() {
createFreeStyleProject("j1");

0 comments on commit 9c7b5a1

Please sign in to comment.