use of org.jenkinsci.test.acceptance.plugins.job_config_history.JobConfigHistory.Change in project acceptance-test-harness by jenkinsci.
the class JobConfigHistoryPluginTest method track_change_in_matrix_project.
@Test
@Issue("JENKINS-24410")
@WithPlugins("matrix-project")
public void track_change_in_matrix_project() {
MatrixProject job = jenkins.jobs.create(MatrixProject.class);
JobConfigHistory history = job.action(JobConfigHistory.class);
List<Change> original = history.getChanges();
job.configure();
job.runSequentially.check();
job.save();
List<Change> newOnes = history.getChanges();
assertThat("New changes saved", newOnes.size(), greaterThan(original.size()));
}
use of org.jenkinsci.test.acceptance.plugins.job_config_history.JobConfigHistory.Change in project acceptance-test-harness by jenkinsci.
the class JobConfigHistoryPluginTest method track_change_in_maven_project.
@Test
@Issue("JENKINS-24410")
@WithPlugins("maven-plugin")
public void track_change_in_maven_project() {
MavenModuleSet job = jenkins.jobs.create(MavenModuleSet.class);
JobConfigHistory history = job.action(JobConfigHistory.class);
List<Change> original = history.getChanges();
job.configure();
job.goals.set("clean");
job.save();
List<Change> newOnes = history.getChanges();
assertThat("New changes saved", newOnes.size(), greaterThan(original.size()));
}
Aggregations