use of org.guvnor.ala.pipeline.SystemPipelineDescriptor in project kie-wb-common by kiegroup.
the class ProvisioningPipelinesProducer method getWildflyPipeline.
/**
* Produces a pipeline for provisioning building an provisioning war applications into an Wildlfy server.
*/
@Produces
public SystemPipelineDescriptor getWildflyPipeline() {
return new SystemPipelineDescriptor() {
@Override
public Optional<ProviderType> getProviderType() {
return Optional.of(WildflyProviderType.instance());
}
@Override
public Pipeline getPipeline() {
// Create Wildfly Pipeline Configuration
final GitConfig gitConfig = new GitConfig() {
};
final MavenProjectConfig projectConfig = new MavenProjectConfig() {
};
final MavenBuildConfig mavenBuildConfig = new MavenBuildConfig() {
@Override
public List<String> getGoals() {
final List<String> result = new ArrayList<>();
result.add("clean");
result.add("package");
return result;
}
@Override
public Properties getProperties() {
final Properties result = new Properties();
result.setProperty("failIfNoTests", "false");
return result;
}
};
final MavenBuildExecConfig mavenBuildExecConfig = new MavenBuildExecConfig() {
};
final WildflyProviderConfig wildflyProviderConfig = new WildflyProviderConfig() {
};
final ContextAwareWildflyRuntimeExecConfig wildflyRuntimeExecConfig = new ContextAwareWildflyRuntimeExecConfig() {
};
final Pipeline pipeline = PipelineFactory.newBuilder().addConfigStage("Git Source", gitConfig).addConfigStage("Maven Project", projectConfig).addConfigStage("Maven Build Config", mavenBuildConfig).addConfigStage("Maven Build", mavenBuildExecConfig).addConfigStage("Wildfly Provider Config", wildflyProviderConfig).addConfigStage("Wildfly Runtime Exec", wildflyRuntimeExecConfig).buildAs("source-to-wildlfy-provisioning");
return pipeline;
}
};
}
Aggregations