use of org.jboss.pnc.model.BuildConfiguration in project pnc by project-ncl.
the class TestProjectConfigurationBuilder method buildConfigurationWhichDependsOnItself.
public BuildConfiguration buildConfigurationWhichDependsOnItself() {
BuildConfiguration buildConfiguration = build(1, "depends-on-itself");
buildConfiguration.addDependency(buildConfiguration);
return buildConfiguration;
}
use of org.jboss.pnc.model.BuildConfiguration in project pnc by project-ncl.
the class TestProjectConfigurationBuilder method buildConfigurationWithCycleDependency.
public BuildConfiguration buildConfigurationWithCycleDependency(BuildConfigurationSet buildConfigurationSet) {
BuildConfiguration buildConfiguration1 = build(1, "cycle-dependency-1", buildConfigurationSet);
BuildConfiguration buildConfiguration2 = build(2, "cycle-dependency-2", buildConfigurationSet);
BuildConfiguration buildConfiguration3 = build(3, "cycle-dependency-3", buildConfigurationSet);
buildConfiguration1.addDependency(buildConfiguration2);
buildConfiguration2.addDependency(buildConfiguration3);
buildConfiguration3.addDependency(buildConfiguration1);
return buildConfiguration1;
}
use of org.jboss.pnc.model.BuildConfiguration in project pnc by project-ncl.
the class TestProjectConfigurationBuilder method buildConfigurationToCancel.
public BuildConfiguration buildConfigurationToCancel(int id, String name) {
BuildConfiguration buildConfiguration = build(id, name);
buildConfiguration.setBuildScript(CANCEL);
return buildConfiguration;
}
use of org.jboss.pnc.model.BuildConfiguration in project pnc by project-ncl.
the class BuildConfigurationRepositoryImplTest method shouldCreateAndUpdateBuildConfigurationWithDefaultAlignmentParams.
@Test
public void shouldCreateAndUpdateBuildConfigurationWithDefaultAlignmentParams() {
String name = randomAlphabetic(10);
BuildConfiguration config1 = producers.createValidBuildConfiguration(name);
BuildConfiguration savedBC = repository.save(config1);
assertThat(savedBC.getDefaultAlignmentParams().contains("-DversionSuffixStrip="));
savedBC.setBuildType(BuildType.GRADLE);
savedBC = repository.save(savedBC);
assertThat(savedBC.getDefaultAlignmentParams().contains("-DignoreUnresolvableDependencies=true"));
}
use of org.jboss.pnc.model.BuildConfiguration in project pnc by project-ncl.
the class BuildConfigurationRepositoryImplTest method shouldCreateBuildConfigurationWithNameOfArchivedConfiguration.
@Test
public void shouldCreateBuildConfigurationWithNameOfArchivedConfiguration() {
String name = randomAlphabetic(10);
BuildConfiguration archived = producers.createValidBuildConfiguration(name);
archived.setArchived(true);
repository.save(archived);
repository.save(producers.createValidBuildConfiguration(name));
}
Aggregations