Constructor and Description |
---|
AbstractBuildLog() |
Modifier and Type | Method and Description |
---|---|
void |
executedLifecycle(BuildRequest request)
Log that the lifecycle has executed.
|
void |
executingLifecycle(BuildRequest request,
org.springframework.boot.buildpack.platform.build.LifecycleVersion version,
VolumeName buildCacheVolume)
Log that the lifecycle is executing.
|
protected abstract Consumer<TotalProgressEvent> |
getProgressConsumer(String message) |
protected void |
log() |
protected abstract void |
log(String message) |
void |
pulledImage(Image image,
org.springframework.boot.buildpack.platform.build.ImageType imageType)
Log that an image has been pulled.
|
Consumer<TotalProgressEvent> |
pullingImage(ImageReference imageReference,
org.springframework.boot.buildpack.platform.build.ImageType imageType)
Log that an image is being pulled.
|
void |
pushedImage(ImageReference imageReference)
Log that an image has been pushed.
|
Consumer<TotalProgressEvent> |
pushingImage(ImageReference imageReference)
Log that an image is being pushed.
|
Consumer<LogUpdateEvent> |
runningPhase(BuildRequest request,
String name)
Log that a specific phase is running.
|
void |
skippingPhase(String name,
String reason)
Log that a specific phase is being skipped.
|
void |
start(BuildRequest request)
Log that a build is starting.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
to, toSystemOut
public void start(BuildRequest request)
BuildLog
public Consumer<TotalProgressEvent> pullingImage(ImageReference imageReference, org.springframework.boot.buildpack.platform.build.ImageType imageType)
BuildLog
pullingImage
in interface BuildLog
imageReference
- the image referenceimageType
- the image typepublic void pulledImage(Image image, org.springframework.boot.buildpack.platform.build.ImageType imageType)
BuildLog
pulledImage
in interface BuildLog
image
- the image that was pulledimageType
- the image type that was pulledpublic Consumer<TotalProgressEvent> pushingImage(ImageReference imageReference)
BuildLog
pushingImage
in interface BuildLog
imageReference
- the image referencepublic void pushedImage(ImageReference imageReference)
BuildLog
pushedImage
in interface BuildLog
imageReference
- the image referencepublic void executingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, VolumeName buildCacheVolume)
BuildLog
executingLifecycle
in interface BuildLog
request
- the build requestversion
- the lifecycle versionbuildCacheVolume
- the name of the build cache volume in usepublic Consumer<LogUpdateEvent> runningPhase(BuildRequest request, String name)
BuildLog
runningPhase
in interface BuildLog
request
- the build requestname
- the name of the phasepublic void skippingPhase(String name, String reason)
BuildLog
skippingPhase
in interface BuildLog
name
- the name of the phasereason
- the reason the phase is skippedpublic void executedLifecycle(BuildRequest request)
BuildLog
executedLifecycle
in interface BuildLog
request
- the build requestprotected void log()
protected abstract void log(String message)
protected abstract Consumer<TotalProgressEvent> getProgressConsumer(String message)