public class DockerFingerprints extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFromFacet(String ancestorImageId,
String descendantImageId,
hudson.model.Run<?,?> run)
Creates a new
DockerAncestorFingerprintFacet and DockerDescendantFingerprintFacet and adds a run. |
static void |
addRunFacet(ContainerRecord record,
hudson.model.Run<?,?> run)
Adds a new
ContainerRecord for the specified image, creating necessary intermediate objects as it goes. |
static hudson.model.Fingerprint |
of(String imageId)
Gets
Fingerprint for a given docker image. |
@CheckForNull
public static hudson.model.Fingerprint of(@Nonnull
String imageId)
throws IOException
Fingerprint for a given docker image.IOExceptionpublic static void addRunFacet(@Nonnull
ContainerRecord record,
@Nonnull
hudson.model.Run<?,?> run)
throws IOException
ContainerRecord for the specified image, creating necessary intermediate objects as it goes.IOExceptionpublic static void addFromFacet(@CheckForNull
String ancestorImageId,
@Nonnull
String descendantImageId,
@Nonnull
hudson.model.Run<?,?> run)
throws IOException
DockerAncestorFingerprintFacet and DockerDescendantFingerprintFacet and adds a run.
Or adds to existing facets.ancestorImageId - the ID of the image specified in a FROM instruction, or null in case of scratch (i.e., the descendant is a base image)descendantImageId - the ID of the image which was builtrun - the build in which the image building occurredIOExceptionCopyright © 2004-2015. All Rights Reserved.