Skip to content

Commit

Permalink
add test for JENKINS-16533
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichi committed Sep 8, 2013
1 parent 1b3c7da commit d0303e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/hudson/scm/SubversionSCMTest.java
Expand Up @@ -1579,4 +1579,17 @@ public void testChangingDepthInJob() throws Exception {
}
}

@Bug(16533)
public void testPollingRespectExternalsWithRevision() throws Exception {
File repo = new CopyExisting(getClass().getResource("JENKINS-16533.zip")).allocate();
SubversionSCM scm = new SubversionSCM("file://" + repo.toURI().toURL().getPath() + "trunk");

FreeStyleProject p = createFreeStyleProject();
p.setScm(scm);
p.setAssignedLabel(createSlave().getSelfLabel());
assertBuildStatusSuccess(p.scheduleBuild2(0).get());

// should not find any change
assertFalse(p.poll(StreamTaskListener.fromStdout()).hasChanges());
}
}
Binary file added src/test/resources/hudson/scm/JENKINS-16533.zip
Binary file not shown.

0 comments on commit d0303e5

Please sign in to comment.