public class BuildStepsRunner extends Object
BuildSteps and builds helpful error messages.| Modifier and Type | Method and Description |
|---|---|
void |
build(HelpfulSuggestions helpfulSuggestions)
Runs the
BuildSteps. |
static BuildStepsRunner |
forBuildImage(BuildConfiguration buildConfiguration,
SourceFilesConfiguration sourceFilesConfiguration)
Creates a runner to build an image.
|
static BuildStepsRunner |
forBuildToDockerDaemon(BuildConfiguration buildConfiguration,
SourceFilesConfiguration sourceFilesConfiguration)
Creates a runner to build to the Docker daemon.
|
public static BuildStepsRunner forBuildImage(BuildConfiguration buildConfiguration, SourceFilesConfiguration sourceFilesConfiguration) throws CacheDirectoryCreationException
buildConfiguration - the configuration parameters for the buildsourceFilesConfiguration - the source/destination file configuration for the imageBuildStepsRunner for building to a registryCacheDirectoryCreationException - if the cacheDirectory could not be createdpublic static BuildStepsRunner forBuildToDockerDaemon(BuildConfiguration buildConfiguration, SourceFilesConfiguration sourceFilesConfiguration) throws CacheDirectoryCreationException
buildConfiguration - the configuration parameters for the buildsourceFilesConfiguration - the source/destination file configuration for the imageBuildStepsRunner for building to a Docker daemonCacheDirectoryCreationException - if the cacheDirectory could not be createdpublic void build(HelpfulSuggestions helpfulSuggestions) throws BuildStepsExecutionException
BuildSteps.helpfulSuggestions - suggestions to use in help messages for exceptionsBuildStepsExecutionException - if another exception is thrown during the buildCopyright © 2018. All rights reserved.