use of org.jenkinsci.test.acceptance.plugins.subversion.SubversionSvmAdvanced in project acceptance-test-harness by jenkinsci.
the class SubversionPluginTest method poll_for_changes_excluded.
@Test
public void poll_for_changes_excluded() throws SubversionPluginTestException {
final SvnContainer svnContainer = svn.get();
final FreeStyleJob f = jenkins.jobs.create();
final SubversionScm subversionScm = f.useScm(SubversionScm.class);
subversionScm.url.set(svnContainer.getUrlUnsaveRepoAtRevision(1));
// EXCLUDE THE CHANGES TO REV 2
final SubversionSvmAdvanced scmAdvanced = subversionScm.advanced();
scmAdvanced.excludedRegions.set(".*\\.txt");
f.save();
f.startBuild().shouldSucceed();
f.configure();
subversionScm.url.set(svnContainer.getUrlUnsaveRepoAtRevision(2));
f.pollScm().schedule("* * * * *");
f.save();
elasticSleep(70000);
// We should not have a second build after 70 seconds
assertThat(f.getNextBuildNumber(), CoreMatchers.is(2));
}
Aggregations