Search in sources :

Example 1 with BuildTasksInitializer

use of org.jboss.pnc.coordinator.builder.BuildTasksInitializer in project pnc by project-ncl.

the class ReadDependenciesTest method createBuildSetTask.

public BuildSetTask createBuildSetTask(BuildConfigurationSet buildConfigurationSet, User user) throws CoreException {
    BuildTasksInitializer buildTasksInitializer = new BuildTasksInitializer(datastoreAdapter, 1L);
    AtomicInteger atomicInteger = new AtomicInteger(1);
    BuildOptions buildOptions = new BuildOptions();
    buildOptions.setRebuildMode(RebuildMode.FORCE);
    return buildTasksInitializer.createBuildSetTask(buildConfigurationSet, user, buildOptions, () -> Sequence.nextBase32Id(), buildQueue.getUnfinishedTasks());
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) BuildOptions(org.jboss.pnc.spi.BuildOptions) BuildTasksInitializer(org.jboss.pnc.coordinator.builder.BuildTasksInitializer)

Example 2 with BuildTasksInitializer

use of org.jboss.pnc.coordinator.builder.BuildTasksInitializer in project pnc by project-ncl.

the class StatusUpdatesTest method createBuildSetTask.

public BuildSetTask createBuildSetTask(BuildConfigurationSet buildConfigurationSet, User user) throws CoreException {
    BuildTasksInitializer buildTasksInitializer = new BuildTasksInitializer(datastoreAdapter, 1L);
    AtomicInteger atomicInteger = new AtomicInteger(1);
    BuildOptions buildOptions = new BuildOptions();
    buildOptions.setRebuildMode(RebuildMode.FORCE);
    return buildTasksInitializer.createBuildSetTask(buildConfigurationSet, user, buildOptions, () -> Sequence.nextBase32Id(), buildQueue.getUnfinishedTasks());
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) BuildOptions(org.jboss.pnc.spi.BuildOptions) BuildTasksInitializer(org.jboss.pnc.coordinator.builder.BuildTasksInitializer)

Aggregations

AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 BuildTasksInitializer (org.jboss.pnc.coordinator.builder.BuildTasksInitializer)2 BuildOptions (org.jboss.pnc.spi.BuildOptions)2