use of org.jenkinsci.test.acceptance.plugins.parameterized_trigger.BuildTriggerConfig in project acceptance-test-harness by jenkinsci.
the class CheckStylePluginTest method should_return_from_triggered_subjob.
@Test
@WithPlugins("parameterized-trigger")
@Issue("JENKINS-33162")
public void should_return_from_triggered_subjob() {
FreeStyleJob checkstyleJob = createFreeStyleJob(settings -> settings.pattern.set(PATTERN_WITH_776_WARNINGS));
FreeStyleJob trigger = jenkins.jobs.create();
trigger.configure();
TriggerCallBuildStep step = trigger.addBuildStep(TriggerCallBuildStep.class);
BuildTriggerConfig config = step.getBuildTriggerConfig(0);
config.projects.set(checkstyleJob.name);
config.block.click();
trigger.save();
trigger.startBuild().shouldSucceed();
Build downstream = checkstyleJob.build(1);
downstream.shouldSucceed();
}
Aggregations